setup devcontainer
This commit is contained in:
parent
0793a2cfba
commit
27f1780f6f
3 changed files with 15 additions and 1 deletions
7
.devcontainer/Dockerfile
Normal file
7
.devcontainer/Dockerfile
Normal file
|
@ -0,0 +1,7 @@
|
|||
FROM alpine:latest
|
||||
RUN apk update && \
|
||||
apk upgrade && \
|
||||
apk add nodejs yarn php8 php8-mysqli php8-mbstring git nano && \
|
||||
echo "alias php=php8" >> /etc/profile
|
||||
|
||||
ENV ENV="/etc/profile"
|
7
.devcontainer/devcontainer.json
Normal file
7
.devcontainer/devcontainer.json
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"dockerFile": "Dockerfile",
|
||||
"extensions": [ ],
|
||||
"forwardPorts": [
|
||||
1234
|
||||
]
|
||||
}
|
|
@ -9,7 +9,7 @@
|
|||
"compile": "concurrently \"yarn css\" \"yarn js\"",
|
||||
"css": "sass scss/:public/css --style=compressed --no-source-map",
|
||||
"js": "webpack --config ./webpack.conf.js",
|
||||
"watch": "concurrently \"sass --watch --style compressed scss/:public/css\" \"cd public && php -S localhost:1234\" \"webpack --config ./webpack.conf.js --mode development --watch\""
|
||||
"watch": "concurrently \"sass --watch --style compressed scss/:public/css\" \"cd public && php8 -S localhost:1234\" \"webpack --config ./webpack.conf.js --mode development --watch\""
|
||||
},
|
||||
"devDependencies": {
|
||||
"concurrently": "^6.0.0",
|
||||
|
|
Loading…
Reference in a new issue