From 929b29172ba474afc067b841a0e8e64dc59a7a46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Moreno?= Date: Fri, 4 Jun 2021 16:31:51 +0200 Subject: [PATCH] fix docker files --- .dockerignore | 5 ++++- Dockerfile | 8 ++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.dockerignore b/.dockerignore index 978c0570..6e4afa7c 100644 --- a/.dockerignore +++ b/.dockerignore @@ -2,9 +2,12 @@ node_modules/ out/ npm-debug.log !src/test/**/node_modules -package-lock.json Dockerfile .gitignore +.npmignore +.prettierignore LICENSE README.md +SECURITY.md +azure-pipelines.yml ThirdPartyNotices.txt \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index e6330543..89854bfc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,10 @@ FROM node:12-alpine WORKDIR /opt/vsce -COPY package.json . -COPY yarn.lock . -RUN yarn +COPY package.json package-lock.json . +RUN npm install COPY . . -RUN yarn compile +RUN npm run compile +RUN rm package-lock.json tsconfig.json VOLUME /workspace WORKDIR /workspace ENTRYPOINT ["/opt/vsce/out/vsce"] \ No newline at end of file