Skip to content

Commit

Permalink
set WORKDIR
Browse files Browse the repository at this point in the history
  • Loading branch information
zhullyb committed Nov 16, 2023
1 parent c41fcab commit c04a9fb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM python:3.11-alpine
EXPOSE 5000
COPY main.py screenshot.py utils.py requirements.txt geckodriver /root/
WORKDIR /root
COPY requirements.txt /root/
RUN pip install -r /root/requirements.txt
RUN mkdir /root/templates \
&& mkdir -p /usr/share/fonts/misans \
&& apk add --no-cache \
Expand All @@ -9,8 +11,8 @@ RUN mkdir /root/templates \
font-noto \
font-noto-cjk \
font-noto-cjk-extra \
font-noto-emoji \
&& pip install -r /root/requirements.txt
font-noto-emoji
COPY templates/ /root/templates
COPY MiSans-Regular.ttf /usr/share/fonts/misans/
CMD env GECKODRIVER_PATH=/root/geckodriver gunicorn --threads 4 -b 0.0.0.0:5000 /root/main:app
COPY main.py screenshot.py utils.py geckodriver /root/
CMD env GECKODRIVER_PATH=/root/geckodriver gunicorn --threads 4 -b 0.0.0.0:5000 /main:app

0 comments on commit c04a9fb

Please sign in to comment.