Skip to content
This repository has been archived by the owner on Jul 18, 2023. It is now read-only.

Commit

Permalink
Update Dockerfile and package.json to speed up the build process or G…
Browse files Browse the repository at this point in the history
…oogle Cloud Build
  • Loading branch information
jak103 committed Jul 29, 2020
1 parent 0ec5c12 commit 3180e07
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM node:12-slim AS client
ENV NODE_ENV production
WORKDIR /client
COPY ./client/ ./
RUN npm install
Expand All @@ -10,9 +11,12 @@ COPY ./server ./
#RUN go build -o uno .
RUN env CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o uno .

FROM alpine:latest as certs
RUN apk --update add ca-certificates

FROM scratch
WORKDIR /uno
COPY --from=server /server/uno /uno/uno
COPY --from=client /client/dist /client/dist
RUN apk add --no-cache ca-certificates
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
CMD ["/uno/uno"]
22 changes: 11 additions & 11 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,24 @@
"test-integration": "cypress run --browser chrome"
},
"dependencies": {
"@types/jest": "^26.0.3",
"@vue/cli-service-global": "^4.4.6",
"axios": "^0.19.2",
"core-js": "^3.6.4",
"vue": "^2.6.11",
"vue-router": "^3.1.6",
"vuetify": "^2.2.11"
"@types/jest": "^26.0.3",
"@vue/cli-service": "~4.3.0",
"@vue/cli-plugin-unit-jest": "^4.4.6",
"@vue/cli-service-global": "^4.4.6",
"@vue/cli-plugin-eslint": "~4.3.0",
"eslint-plugin-jest": "^23.17.1",
"axios": "^0.19.2",
"core-js": "^3.6.4",
"vue": "^2.6.11",
"vue-router": "^3.1.6",
"vuetify": "^2.2.11"
},
"devDependencies": {
"@vue/cli-plugin-babel": "~4.3.0",
"@vue/cli-plugin-eslint": "~4.3.0",
"@vue/cli-plugin-router": "~4.3.0",
"@vue/cli-plugin-unit-jest": "^4.4.6",
"@vue/cli-service": "~4.3.0",
"babel-eslint": "^10.1.0",
"cypress": "^4.9.0",
"eslint": "^6.7.2",
"eslint-plugin-jest": "^23.17.1",
"eslint-plugin-vue": "^6.2.2",
"sass": "^1.19.0",
"sass-loader": "^8.0.0",
Expand Down

0 comments on commit 3180e07

Please sign in to comment.