remove npm build & rice
This commit is contained in:
parent
8a883d5935
commit
fba2481324
12
Dockerfile
12
Dockerfile
@ -1,18 +1,12 @@
|
||||
FROM node:alpine
|
||||
WORKDIR /src/app
|
||||
COPY . /src/app
|
||||
RUN yarn install && rm -rf assets/dist && npm run build
|
||||
|
||||
FROM golang:alpine
|
||||
WORKDIR /go/src/github.com/hacdias/filemanager
|
||||
COPY . /go/src/github.com/hacdias/filemanager
|
||||
COPY --from=0 /src/app/assets/dist /go/src/github.com/hacdias/filemanager/assets/dist
|
||||
RUN apk add --no-cache git && go get -u github.com/golang/dep/cmd/dep && go get github.com/GeertJohan/go.rice/rice
|
||||
RUN apk add --no-cache git && go get -u github.com/golang/dep/cmd/dep
|
||||
|
||||
RUN dep ensure -update && rice embed-go && cd ./caddy/hugo && rice embed-go
|
||||
RUN dep ensure -update
|
||||
RUN cd /go/src/github.com/hacdias/filemanager/cmd/filemanager && go build
|
||||
|
||||
FROM alpine:latest
|
||||
COPY --from=1 /go/src/github.com/hacdias/filemanager/cmd/filemanager/filemanager /usr/local/bin/filemanager
|
||||
COPY --from=0 /go/src/github.com/hacdias/filemanager/cmd/filemanager/filemanager /usr/local/bin/filemanager
|
||||
ENTRYPOINT ["filemanager"]
|
||||
CMD ["-h"]
|
||||
Loading…
Reference in New Issue
Block a user