Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mishankov committed Nov 15, 2024
1 parent 9c65739 commit 4bc2292
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
FROM golang:1.23 as buildGo
FROM golang:1.23 AS buildgo
WORKDIR /app
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o ./build/server ./server
RUN CGO_ENABLED=0 go build -o ./build/server ./server


FROM node:22 as buildJs
FROM node:22 AS buildjs
WORKDIR /app
COPY . .
RUN npm ci
RUN npm run build:js


FROM alpine:latest
FROM alpine:3
WORKDIR /app
COPY --from=buildGo /app/build/server /app/server
COPY --from=buildJs /app/dist /app/dist
COPY --from=buildgo /app/build/server /app/server
COPY --from=buildjs /app/dist /app/dist
EXPOSE 4444
ENTRYPOINT ["/app/server"]

0 comments on commit 4bc2292

Please sign in to comment.