Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Daiseydev #5

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
FROM python:3.12

ENV PYTHONPATH "/workspaces/www/backend/src"

RUN pip install invoke
RUN pip install flask

EXPOSE 5000



5 changes: 2 additions & 3 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3.8"

services:
webapp:
build:
Expand All @@ -9,7 +7,8 @@ services:
volumes:
- ../..:/workspaces:cached
command: sleep infinity
network_mode: service:db
ports:
- "5000:5000"
db:
image: postgres:16-alpine
restart: unless-stopped
Expand Down
2 changes: 1 addition & 1 deletion tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ def update_combined_reqs(c):
# Run
@task
def run_back(c):
get_api().run()
get_api().run(host="0.0.0.0")