This commit is contained in:
Hayden 2022-09-03 19:31:36 -08:00
parent efcfbf8c21
commit 9b46ea7874

View file

@ -7,8 +7,6 @@ RUN pnpm install --frozen-lockfile --shamefully-hoist
COPY frontend . COPY frontend .
RUN pnpm build RUN pnpm build
# Build API # Build API
FROM golang:alpine AS builder FROM golang:alpine AS builder
RUN apk update RUN apk update
@ -20,7 +18,6 @@ COPY --from=frontend-builder app/.output go/src/app/app/api/public
RUN go get -d -v ./... RUN go get -d -v ./...
RUN CGO_ENABLED=1 GOOS=linux go build -o /go/bin/api -v ./app/api/*.go RUN CGO_ENABLED=1 GOOS=linux go build -o /go/bin/api -v ./app/api/*.go
# Production Stage # Production Stage
FROM alpine:latest FROM alpine:latest