Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
hiibolt authored May 30, 2024
1 parent 67bbc8b commit af0e02e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,12 @@ WORKDIR /app
# Leverage a cache mount to /root/.cache/pip to speed up subsequent builds.
# Leverage a bind mount to requirements.txt to avoid having to copy them into
# into this layer.
RUN --mount=type=cache,target=/root/.cache/pip \
--mount=type=bind,source=requirements.txt,target=requirements.txt \
python -m pip install -r requirements.txt
RUN python -m pip install -r requirements.txt

# Copy the source code into the container.
COPY . .

VOLUME /app/assets

# Run the application.
CMD ["python", "server.py"]
CMD ["python", "server.py"]

0 comments on commit af0e02e

Please sign in to comment.