Skip to content

Commit

Permalink
fix build ep2
Browse files Browse the repository at this point in the history
  • Loading branch information
sparkoo committed Dec 6, 2024
1 parent c68b2c2 commit 68a4a6a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# backend build
FROM golang:1.23 as builderGo
FROM golang:1.23 AS builder_go

USER root
WORKDIR /csgo-2d-demo-player
Expand All @@ -16,7 +16,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build \
main.go

# web build
FROM node:lts-slim as builderNpm
FROM node:lts-slim AS builder_npm

USER root

Expand All @@ -26,6 +26,8 @@ COPY web/package.json .
COPY web/package-lock.json .
RUN npm install

COPY web/index.html .
COPY web/vite.config.js .
COPY web/.env.production .
COPY web/public public
COPY web/src src
Expand Down

0 comments on commit 68a4a6a

Please sign in to comment.