Skip to content
Snippets Groups Projects

Adding files 01

Merged fejao requested to merge Adding_files_01 into main
4 files
+ 188
0
Compare changes
  • Side-by-side
  • Inline
Files
4
+ 30
0
FROM python:3.10.15-bullseye
# Set variables
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ="Europe/Berlin"
# Install dependencies
RUN apt-get update -qq && apt-get upgrade -qqy \
&& apt-get install -qqy \
python3-pip \
htop \
vim \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Create the folder at the container
WORKDIR /c3buttons
# Install python requirements
COPY ../../django/requirements.txt ./
RUN pip3 install -r requirements.txt
# Copy App
COPY ../../django/ .
### TEST
# CMD ["sleep", "10000000"]
### PROD
CMD ["python3", "manage.py", "runserver", "0.0.0.0:8000"]
Loading