taskcafe/Dockerfile
Jordan Knott 80a1e5e85e
fix(Dockerfile): remove config file from being added
because config settings can now be set through ENV variables or cli flag, we should no longer load a default config file in the dockerfile

let the user decide if they want to load one through volumes
2020-08-14 12:35:56 -05:00

21 lines
508 B
Docker

FROM node:14.5-alpine as frontend
RUN apk --no-cache add curl
WORKDIR /usr/src/app
COPY frontend .
RUN yarn install
RUN yarn build
FROM golang:1.14.5-alpine as backend
WORKDIR /usr/src/app
COPY go.mod go.mod
COPY go.sum go.sum
RUN go mod download
COPY . .
COPY --from=frontend /usr/src/app/build ./frontend/build
RUN go run cmd/mage/main.go backend:genFrontend backend:genMigrations backend:build
FROM alpine:latest
WORKDIR /root/
COPY --from=backend /usr/src/app/dist/taskcafe .
CMD ["./taskcafe", "web"]