Skip to content

Commit b3823ad

Browse files
author
James Lee
committed
introduce docker compose
1 parent 21cca93 commit b3823ad

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@ RUN pip install Flask==0.11.1 redis==2.10.5
33
RUN useradd -ms /bin/bash admin
44
USER admin
55
WORKDIR /app
6-
COPY app /app
76
CMD ["python", "app.py"]

docker-compose.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: '2'
2+
services:
3+
dockerapp:
4+
build: .
5+
ports:
6+
- "5000:5000"
7+
volumes:
8+
- ./app:/app
9+
10+
redis:
11+
image: redis:3.2.0

0 commit comments

Comments
 (0)