Skip to content

Commit

Permalink
chore(cloud): storage test - gcsfuse
Browse files Browse the repository at this point in the history
  • Loading branch information
polonel committed May 23, 2019
1 parent 745e815 commit 4e14dc8
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
FROM node:10.10-alpine
FROM golang:1.10.0-alpine AS gcsfuse
RUN apk add --no-cache git
ENV GOPATH /go
RUN go get -u github.com/googlecloudplatform/gcsfuse

FROM node:10.10-alpine AS builder

RUN mkdir -p /usr/src/trudesk
WORKDIR /usr/src/trudesk
Expand All @@ -16,8 +21,9 @@ RUN rm -rf node_modules && mv prod_node_modules node_modules

FROM node:10.10-alpine
WORKDIR /usr/src/trudesk
RUN apk add --no-cache bash mongodb-tools
COPY --from=0 /usr/src/trudesk .
RUN apk add --no-cache ca-certificates bash mongodb-tools fuse && rm -rf /tmp/*
COPY --from=builder /usr/src/trudesk .
COPY --from=gcsfuse /go/bin/gcsfuse /usr/local/bin

EXPOSE 8118

Expand Down

0 comments on commit 4e14dc8

Please sign in to comment.