Skip to content

Commit

Permalink
Dockerfile added arg REPO_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
fb929 committed Feb 13, 2024
1 parent 6fc5443 commit 0050576
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# syntax=docker/dockerfile:1
FROM python:3.11-alpine

ARG REPO_DIR=.

WORKDIR /code
ENV FLASK_APP=app.py
ENV FLASK_RUN_HOST=0.0.0.0
ENV CONFIG_FILE=/etc/any-sync-admin/config.yml
RUN apk add --no-cache bash gcc musl-dev linux-headers libffi-dev
COPY code/requirements.txt requirements.txt
COPY ${REPO_DIR}/code/ .
RUN pip install -r requirements.txt
EXPOSE 5000
COPY code .
CMD python app.py

0 comments on commit 0050576

Please sign in to comment.