add dev container
All checks were successful
Build and Push container / build_concierge_backend (push) Successful in 1m23s
All checks were successful
Build and Push container / build_concierge_backend (push) Successful in 1m23s
This commit is contained in:
parent
7368fd7eac
commit
ce3d70e133
2 changed files with 31 additions and 1 deletions
19
.devcontainer/devcontainer.json
Normal file
19
.devcontainer/devcontainer.json
Normal file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
"build": {
|
||||
"dockerfile": "../Dockerfile",
|
||||
"target": "dev"
|
||||
},
|
||||
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"extensions": [
|
||||
"dbaeumer.vscode-eslint",
|
||||
"ms-azuretools.vscode-docker"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
"postStartCommand": "nginx",
|
||||
|
||||
"appPort": "8080:80"
|
||||
}
|
13
Dockerfile
13
Dockerfile
|
@ -1 +1,12 @@
|
|||
FROM alpine
|
||||
FROM alpine AS common
|
||||
# Insert here instructions to build your container, both for dev and production
|
||||
|
||||
# Example - install a web server
|
||||
RUN apk add nginx
|
||||
|
||||
FROM common as dev
|
||||
# Insert here all the dev only tools you need such as debuggers
|
||||
RUN apk add git
|
||||
|
||||
FROM common as prod
|
||||
# Insert here production only things such as keys or production settings
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue