Docker working

This commit is contained in:
root 2025-02-03 06:45:48 -05:00
parent 4179c43f0f
commit 94c46143a9

View File

@ -6,11 +6,13 @@ COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
# Copy in the source code
COPY src ./src
COPY . .
EXPOSE 5000
# Setup an app user so the container doesn't run as the root user
RUN useradd app
USER app
CMD ["flask", "--app", "build", "run"]
CMD ["cd", "/usr/local/app"]
CMD "ls"
CMD ["flask", "--app", "build", "run", "--host=0.0.0.0"]]