mirror of
https://github.com/Mailu/Mailu.git
synced 2024-12-12 10:45:38 +02:00
docs: user ARG to chose image, install python3 before running pip3
This commit is contained in:
parent
120b07c572
commit
a053f90875
@ -1,12 +1,13 @@
|
||||
FROM python:3-alpine
|
||||
ARG DISTRO=alpine:3.8
|
||||
FROM $DISTRO
|
||||
|
||||
COPY requirements.txt /requirements.txt
|
||||
|
||||
ARG version=master
|
||||
ENV VERSION=$version
|
||||
|
||||
RUN pip install -r /requirements.txt \
|
||||
&& apk add --no-cache nginx curl \
|
||||
RUN apk add --no-cache nginx curl python3 \
|
||||
&& pip3 install -r /requirements.txt \
|
||||
&& mkdir /run/nginx
|
||||
|
||||
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
Loading…
Reference in New Issue
Block a user