Skip to content

Commit

Permalink
test on cloud (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
msaunby authored Jun 22, 2023
1 parent 4afae2a commit 913c530
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 45 deletions.
12 changes: 8 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# See https://hub.docker.com/r/tiangolo/uwsgi-nginx-flask/
FROM tiangolo/uwsgi-nginx-flask:python3.11
FROM tiangolo/meinheld-gunicorn-flask:python3.9

# See https://hub.docker.com/r/tiangolo/meinheld-gunicorn-flask/
# Note Python3.9 is used for compatibility. This image is actively
# maintained.

# Alternatively
# FROM tiangolo/uwsgi-nginx-flask:python3.11

# Build args
ARG VERSION
Expand All @@ -19,8 +25,6 @@ COPY ./app /app
ENV PORT=80
ENV VERSION=$VERSION

#CMD pipenv run gunicorn --bind 0.0.0.0:8000 --timeout 120 --workers 2 cbwg.wsgi

# Use this CMD to only run the python app
#CMD pipenv run python /app/main.py
# Or this CMD if the requirements have been 'pip install'ed.
Expand Down
20 changes: 0 additions & 20 deletions Dockerfile-nginx

This file was deleted.

21 changes: 0 additions & 21 deletions Dockerfile-no-nginx

This file was deleted.

6 changes: 6 additions & 0 deletions PRODUCTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ Probably required for HTTP/2
## Docker test
```
% docker build -t building-docker-containers .
% docker run -p 8080:80 building-docker-containers:latest
```
When running Docker locally it's likely you will create a lot of test containers. To remove all stopped containers.
```
% docker container prune
Expand Down

0 comments on commit 913c530

Please sign in to comment.