Skip to content

Commit

Permalink
Basic Dev Container for Backend (#265)
Browse files Browse the repository at this point in the history
* Dev Container

* x86 arch

* Add oh-my-zsh
  • Loading branch information
judtinzhang authored Mar 11, 2024
1 parent 3fe64bf commit 11650df
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
11 changes: 11 additions & 0 deletions backend/.devcontainer/Dockerfile
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'
18 changes: 18 additions & 0 deletions backend/.devcontainer/devcontainer.json
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
}
}
}

0 comments on commit 11650df

Please sign in to comment.