setup devcontainer

This commit is contained in:
Jonas Leder 2021-09-10 18:46:58 +00:00
parent 0793a2cfba
commit 27f1780f6f
3 changed files with 15 additions and 1 deletions

7
.devcontainer/Dockerfile Normal file
View 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"

View file

@ -0,0 +1,7 @@
{
"dockerFile": "Dockerfile",
"extensions": [ ],
"forwardPorts": [
1234
]
}

View file

@ -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",