Files
penracourses/Dockerfile
T
Ross 0373b22e78 .
2022-05-20 11:28:20 +01:00

24 lines
529 B
Docker

# pull official base image
FROM python:3.10.4-slim
# set work directory
WORKDIR /usr/src/rad
# set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# Numpy requriements
#RUN apk add --no-cache --update \
# python3 python3-dev gcc \
# gfortran musl-dev \
# libffi-dev openssl-dev
RUN apt-get update && apt-get -y install postgresql postgresql-contrib
# install dependencies
RUN pip install --upgrade pip
COPY ./requirements.txt .
RUN pip install -r requirements.txt
# copy project
COPY . .