Add dev docker-compose and dev Dockerfile wip

This commit is contained in:
Michael Götz 2019-02-07 16:41:00 +01:00
parent 9bceb0d4dd
commit 99be38db25
2 changed files with 21 additions and 8 deletions

14
Dockerfile.dev Normal file
View File

@ -0,0 +1,14 @@
FROM alpine:3.8
ADD ["./requirements.txt", "/requirements.txt"]
RUN apk add --update --no-cache python3 postgresql-dev py3-psycopg2 && \
pip3 install -r /requirements.txt && \
rm /requirements.txt && \
adduser -D app
WORKDIR /app
CMD ["python3", "-u", "/app/main.py"]
EXPOSE 5000
USER app

View File

@ -1,16 +1,15 @@
version: "3"
networks:
db_net:
external: true
services:
codimd_note_overview:
build: .
build:
context: .
dockerfile: Dockerfile.dev
image: docker.wiai.de/fswiai/codimd_notes_overview:0.1
ports:
- 8080:5000
networks:
- db_net
env_file:
- /home/michigg/Nextcloud/Documents/OFU_Fachschaft/Server/hackmd_overview_addon/hackmd/docker.env
- ./docker.env
volumes:
- ./src:/app