Skip to content
Snippets Groups Projects
Commit 9a0b2f43 authored by Florentin Labelle's avatar Florentin Labelle
Browse files

Add Dockerfile corrections

parent 163bb1ef
No related branches found
No related tags found
No related merge requests found
FROM python:3.8-alpine3.15
WORKDIR /back/
# Required apk packages for building of mysqlclient and cffi python packages
RUN apk update \
&& apk add --virtual build-deps gcc musl-dev mariadb-dev libffi-dev
COPY requirements.txt /back/
RUN pip install -r requirements.txt
# Remove apk packages that were only necessary at build time
RUN apk del build-deps
COPY ./ /back/
ENTRYPOINT python3 manage.py migrate && python3 manage.py runserver 0.0.0.0:8000
FROM python:3.8
WORKDIR /back/
COPY requirements.txt /back/
RUN pip install -r requirements.txt
COPY ./ /back/
ENTRYPOINT python3 manage.py migrate && python3 manage.py runserver 0.0.0.0:8000
FROM node:16
WORKDIR /front/
COPY package.json package-lock.json /front/
RUN npm install
COPY src/ /front/src/
COPY public/ /front/public/
COPY .env /front/
RUN npm run build
FROM nginxinc/nginx-unprivileged
COPY --from=0 /front/build/ /usr/share/nginx/html/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment