diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..b7b63732a243da4b9f2c32cf53456d6ae8271c02 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -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" \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000000000000000000000000000000000000..0c76013538b3bef5fd479818f6065691c30748ef --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,7 @@ +{ + "dockerFile": "Dockerfile", + "extensions": [ ], + "forwardPorts": [ + 1234 + ] +} diff --git a/package.json b/package.json index e744d50a61bdeea9a9365a39d71919ade2a8802b..4fdec8646612ab6a024a65f2debc53277d4f6f93 100644 --- a/package.json +++ b/package.json @@ -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",