serve static files and docker
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
FROM --platform=$BUILDPLATFORM node:20-alpine as webbuild
|
||||
|
||||
COPY . /build
|
||||
|
||||
WORKDIR /build/frontend
|
||||
|
||||
RUN npm ci && npm run build
|
||||
|
||||
FROM --platform=$BUILDPLATFORM golang:1.21-alpine as build
|
||||
|
||||
ADD . /app
|
||||
@@ -15,6 +23,7 @@ FROM --platform=$TARGETPLATFORM alpine:latest
|
||||
WORKDIR /data
|
||||
RUN apk add --no-cache tzdata ca-certificates
|
||||
COPY --from=build /app/build/morningalarm /app/morningalarm
|
||||
COPY --from=webbuild /build/frontend/dist /app/public
|
||||
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
Reference in New Issue
Block a user