change: migrated from python image to alpine image
All checks were successful
/ update (push) Successful in 0s
All checks were successful
/ update (push) Successful in 0s
This commit is contained in:
parent
c2bb0cc6cc
commit
b39983777b
1 changed files with 11 additions and 5 deletions
16
Dockerfile
16
Dockerfile
|
@ -1,6 +1,12 @@
|
|||
FROM python
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN pip install -r requirements.txt
|
||||
CMD ["waitress-serve", "--listen=0.0.0.0:8080", "app:app"]
|
||||
FROM alpine:latest
|
||||
WORKDIR /opt/
|
||||
|
||||
RUN apk add git python3
|
||||
RUN git clone https://git.adrianux.net/ahoemann/Adrianux.net.git /opt
|
||||
RUN python3 -m venv /opt/.venv
|
||||
RUN /opt/.venv/bin/pip install -r requirements.txt
|
||||
RUN apk del git
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
CMD [ "/opt/.venv/bin/waitress-serve", "--listen=0.0.0.0:8080", "app:app" ]
|
Loading…
Reference in a new issue