1
0
mirror of https://github.com/mxpv/podsync.git synced 2024-05-11 05:55:04 +00:00
mxpv-podsync/Dockerfile
2017-08-21 23:52:02 -07:00

26 lines
595 B
Docker

FROM node:latest AS gulp
WORKDIR /app
COPY . .
RUN npm install
RUN npm link gulp
RUN gulp patch
FROM golang:1.8 AS build
WORKDIR /go/src/github.com/mxpv/podsync
COPY --from=gulp /app .
ENV GOOS=linux
ENV GOARCH=amd64
ENV CGO_ENABLED=0
RUN go get -u github.com/golang/dep/cmd/dep
RUN dep ensure
RUN go install -v ./cmd/app
FROM alpine
RUN apk --update --no-cache add ca-certificates
WORKDIR /app/
COPY --from=gulp /app/templates ./templates
COPY --from=gulp /app/dist ./assets
COPY --from=build /go/bin/app .
ENV ASSETS_PATH /app/assets
ENV TEMPLATES_PATH /app/templates
ENTRYPOINT ["/app/app"]