From 00505762d73f956d9f856b1075d789941e45c3d1 Mon Sep 17 00:00:00 2001 From: Grigory Efimov Date: Tue, 13 Feb 2024 17:35:01 -0300 Subject: [PATCH] Dockerfile added arg REPO_DIR --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index aa54e08..ea7825f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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