Add dev docker-compose and dev Dockerfile wip
This commit is contained in:
parent
9bceb0d4dd
commit
99be38db25
14
Dockerfile.dev
Normal file
14
Dockerfile.dev
Normal 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
|
||||||
@ -1,16 +1,15 @@
|
|||||||
version: "3"
|
version: "3"
|
||||||
|
|
||||||
networks:
|
|
||||||
db_net:
|
|
||||||
external: true
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
codimd_note_overview:
|
codimd_note_overview:
|
||||||
build: .
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile.dev
|
||||||
image: docker.wiai.de/fswiai/codimd_notes_overview:0.1
|
image: docker.wiai.de/fswiai/codimd_notes_overview:0.1
|
||||||
ports:
|
ports:
|
||||||
- 8080:5000
|
- 8080:5000
|
||||||
networks:
|
|
||||||
- db_net
|
|
||||||
env_file:
|
env_file:
|
||||||
- /home/michigg/Nextcloud/Documents/OFU_Fachschaft/Server/hackmd_overview_addon/hackmd/docker.env
|
- ./docker.env
|
||||||
|
volumes:
|
||||||
|
- ./src:/app
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user