Skip to content

Commit

Permalink
fix: reduce size of container
Browse files Browse the repository at this point in the history
  • Loading branch information
falsepopsky authored Jun 21, 2024
1 parent 870be69 commit 861afd7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
4 changes: 0 additions & 4 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
FROM python:3.12

# Install python requirements
COPY backend/requirements-combined.txt requirements-combined.txt
RUN pip install -r requirements-combined.txt
7 changes: 4 additions & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "retro_olympics",
"dockerComposeFile": "docker-compose.yml",
"service": "webapp",
"workspaceFolder": "/workspace",
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
"features": {
"ghcr.io/devcontainers/features/node:1": {
"nodeGypDependencies": true,
Expand All @@ -23,6 +23,7 @@
},
"remoteUser": "root",
"remoteEnv": {
"PYTHONPATH": "/workspace/backend/src"
}
"PYTHONPATH": "/workspaces/${localWorkspaceFolderBasename}/backend/src"
},
"postCreateCommand": "cd backend/ && pip install -r requirements-combined.txt"
}
6 changes: 3 additions & 3 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ version: "3.8"
services:
webapp:
build:
context: ..
dockerfile: .devcontainer/Dockerfile
context: .
dockerfile: Dockerfile
entrypoint: ["tail", "-f", "/dev/null"]
volumes:
- ..:/workspace
- ../..:/workspaces:cached
command: sleep infinity
network_mode: service:db
db:
Expand Down

0 comments on commit 861afd7

Please sign in to comment.