updated dockerfile

This commit is contained in:
marvzhang
2021-07-30 11:00:33 +08:00
parent 39015872ae
commit e6a7dbfbbf
8 changed files with 110 additions and 95 deletions

View File

@@ -4,7 +4,7 @@ WORKDIR /go/src/app
COPY ./backend .
ENV GO111MODULE on
ENV GOPROXY https://goproxy.io
#ENV GOPROXY https://goproxy.io
RUN go mod tidy \
&& go install -v ./...
@@ -13,6 +13,7 @@ FROM node:12 AS frontend-build
ADD ./frontend /app
WORKDIR /app
RUN rm /app/.npmrc
# install frontend
#RUN npm config set unsafe-perm true