Skip to content

Instantly share code, notes, and snippets.

@khayyamsaleem
Created June 27, 2019 17:52
Show Gist options
  • Save khayyamsaleem/953327f70e72d76e8af70a07603b4ec7 to your computer and use it in GitHub Desktop.
Save khayyamsaleem/953327f70e72d76e8af70a07603b4ec7 to your computer and use it in GitHub Desktop.
FROM node:alpine
COPY ./frontend /frontend
WORKDIR /frontend
RUN npm install
RUN npm run build
FROM golang:alpine
ENV GO111MODULE on
RUN apk add --no-cache git
RUN mkdir /app
COPY . /app
WORKDIR /app
RUN go build
COPY --from=0 /frontend/dist ./frontend/dist
EXPOSE 8080
ENV API_ENV "docker"
CMD ["/app/cxp-toolkit"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment