test project
This commit is contained in:
19
Dockerfile
Normal file
19
Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
||||
FROM python:3.9.4-slim
|
||||
|
||||
# set work directory
|
||||
WORKDIR /app
|
||||
|
||||
# set env variables
|
||||
ENV PYTHONDONTWRITEBYTECODE 1
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y python3-dev gcc libc-dev libffi-dev
|
||||
RUN apt-get -y install libpq-dev gcc
|
||||
|
||||
# install dependencies
|
||||
COPY requirements.txt .
|
||||
RUN pip install --upgrade pip
|
||||
RUN pip install -r requirements.txt
|
||||
# copy project
|
||||
COPY . .
|
||||
Reference in New Issue
Block a user