Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
abrenaut committed Oct 14, 2021
1 parent e901bd1 commit 6362450
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
16 changes: 12 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
FROM python:3.7-alpine
# syntax=docker/dockerfile:1

RUN apk add --no-cache \
musl-dev=1.1.24-r1 \
gcc=9.2.0-r3
FROM python:3.8-slim-buster

WORKDIR /app

COPY requirements.txt requirements.txt

RUN pip3 install -r requirements.txt

COPY . .

CMD [ "python3", "run.py"]
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
CORS_ALLOWED_ORIGINS = '*'

# Host and port the server should listen.
HOST='127.0.0.1'
HOST='0.0.0.0'
PORT=5000
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
build: .
volumes:
- .:/posio
working_dir: /posio
environment:
- POSIO_SETTINGS=/app/config.py
ports:
- 5000:5000
command: sh -c "pip install -r requirements.txt && POSIO_SETTINGS=/posio/docker/python/config.py python run.py"

0 comments on commit 6362450

Please sign in to comment.