Skip to content

Commit a2b7225

Browse files
committed
added docker-compose file for martor demo
1 parent 11f66fe commit a2b7225

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM alpine:latest
1+
FROM alpine:3.16.0
22

33
WORKDIR /app
44

@@ -18,4 +18,4 @@ RUN apk add --no-cache python3 py3-pip tini; \
1818
USER appuser
1919
EXPOSE 8000/tcp
2020
ENTRYPOINT [ "tini", "--" ]
21-
CMD [ "python3", "/app/martor_demo/manage.py", "runserver", "0.0.0.0:8000" ]
21+
CMD [ "python3", "/app/martor_demo/manage.py", "runserver", "0.0.0.0:8000" ]

docker-compose.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: '3.5'
2+
services:
3+
web:
4+
build: .
5+
ports:
6+
- "8000:8000"
7+
container_name: martor_demo
8+
restart: unless-stopped

0 commit comments

Comments
 (0)