Skip to content

Commit

Permalink
Update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicconike committed Jun 8, 2024
1 parent bb810f8 commit 4513326
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ ADD requirements.txt /steam-stats/requirements.txt
# Install Python dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
&& pip install --no-cache-dir -r /steam-stats/requirements.txt && pip install Playwright && python -m playwright install firefox \
&& pip install --no-cache-dir -r /steam-stats/requirements.txt \
&& playwright install firefox\
&& apt-get purge -y --auto-remove \
&& rm -rf /var/lib/apt/lists/*

Expand All @@ -26,7 +27,9 @@ RUN git config --global user.email "action@github.com" \
&& git config --global user.name "GitHub Action"

# Copy only the necessary application code into the container
ADD api/* /steam-stats/
ADD api/ /steam-stats/api/
ADD assets/ /steam-stats/assets/
ADD README.md /steam-stats/

# Command to run the application
CMD ["python", "api/main.py"]
Binary file modified requirements.txt
Binary file not shown.

1 comment on commit 4513326

@vercel
Copy link

@vercel vercel bot commented on 4513326 Jun 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.