1
0
Fork 0

Init simple Go React blog with Goxygen

This commit is contained in:
Aroy-Art 2024-07-19 22:13:45 +02:00
parent 634a24fe19
commit 1ada5abed1
Signed by: Aroy
GPG key ID: 583642324A1D2070
31 changed files with 873 additions and 0 deletions

14
simple-blog/Dockerfile Normal file
View file

@ -0,0 +1,14 @@
FROM node:16.20-alpine3.18 AS JS_BUILD
COPY webapp /webapp
WORKDIR /webapp
RUN npm install && npm run build
FROM golang:1.22.1-alpine3.18 AS GO_BUILD
COPY server /server
WORKDIR /server
RUN go build -o /go/bin/server
FROM alpine:3.18.6
COPY --from=JS_BUILD /webapp/build* ./webapp/
COPY --from=GO_BUILD /go/bin/server ./
CMD ./server