Files
2023-09-26 23:46:14 +02:00

32 lines
585 B
Docker

# Define basic image to start on
FROM debian:bookworm
# Perform APT installation
RUN \
apt update && \
apt install \
python3 \
python3-pip \
-y
# Install system-wide Flask module
RUN \
apt install python3-flask -y
# Pre-recreate /app dir
RUN \
mkdir /app && \
mkdir /app/templates && \
mkdir /app/static
# CD to /app
WORKDIR /app
# Copy source code to run along with assets
COPY main.py fileObject.py /app/
COPY templates /app/templates
COPY static /app/static
# Before starting the container
ENTRYPOINT [ "python3" ]
CMD [ "main.py" ]