Init simple Go React blog with Goxygen
This commit is contained in:
parent
634a24fe19
commit
1ada5abed1
31 changed files with 873 additions and 0 deletions
14
simple-blog/Dockerfile
Normal file
14
simple-blog/Dockerfile
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue