1
0
mirror of https://github.com/tiyn/beaker-blog.git synced 2025-04-02 15:37:46 +02:00

docker: fewer dependencies

The Dockerfile needed a git dependency.
Now i use the COPY command to get the same result.
This commit is contained in:
TiynGER 2020-06-12 23:59:47 +02:00
parent 2f062c09c4
commit f853a1a89f
2 changed files with 23 additions and 21 deletions

23
Dockerfile Normal file
View File

@ -0,0 +1,23 @@
FROM ubuntu:16.04
MAINTAINER Tiyn tiyn@martenkante.eu
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install python3 python3-pip -y
COPY src /blog
WORKDIR /blog
RUN pip3 install -r requirements.txt
VOLUME /blog/templates/entry
EXPOSE 5000
ENTRYPOINT [ "python3" ]
CMD [ "app.py" ]

View File

@ -1,21 +0,0 @@
FROM ubuntu
MAINTAINER Tiyn tiyn@martenkante.eu
RUN apt-get update
RUN apt-get install python3 python3-pip git -y
RUN git clone https://github.com/tiyn/tiyny-blog /blog
WORKDIR /blog/src
RUN pip3 install -r requirements.txt
VOLUME /blog/src/templates/entry
EXPOSE 5000
ENTRYPOINT [ "python3" ]
CMD [ "app.py" ]