diff --git a/.drone.yml b/.drone.yml index dd0ea11..67d74be 100644 --- a/.drone.yml +++ b/.drone.yml @@ -5,7 +5,6 @@ steps: - name: build image: node:14.20.0-alpine3.16 commands: - - yarn install - - yarn global add @vue/cli-service - - yarn build + - npm install + - npm run build - vue-cli-service build --mode production diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..109aab9 --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,6 @@ +FROM node:14 + +RUN npm install node-sass +RUN npm install @vue/cli-service + +ENTRYPOINT ["tail", "-f", "/dev/null"] diff --git a/package.json b/package.json index 9a031cc..2b60df2 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build", + "build:prod": "vue-cli-service build --mode production", "lint": "vue-cli-service lint" }, "dependencies": {