-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Basic Dev Container for Backend (#265)
* Dev Container * x86 arch * Add oh-my-zsh
- Loading branch information
1 parent
3fe64bf
commit 11650df
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM --platform=linux/amd64 python:3.11-slim-buster | ||
|
||
ARG IMAGE_NAME=pennlabs/mobile-backend-devcontainer | ||
|
||
# Install build dependencies | ||
RUN apt-get update && apt-get install -y gcc libpq-dev libc-dev git-all vim | ||
|
||
RUN pip install pipenv | ||
|
||
ENV DJANGO_SETTINGS_MODULE pennmobile.settings.development | ||
ENV SECRET_KEY 'temporary key just to build the docker image' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"name": "Penn Mobile Backend", | ||
"build": { | ||
"dockerfile": "Dockerfile" | ||
}, | ||
"runArgs": ["--platform=linux/amd64" ], | ||
"features": { | ||
"common": { | ||
"username": "automatic", | ||
"uid": "automatic", | ||
"gid": "automatic", | ||
"installZsh": true, | ||
"installOhMyZsh": true, | ||
"upgradePackages": true, | ||
"nonFreePackages": false | ||
} | ||
} | ||
} |