Skip to content

Commit 9f6460a

Browse files
committed
Fix frontend in docker image
1 parent e40b18f commit 9f6460a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ ARG TARGETARCH
44

55
FROM --platform=linux/amd64 node:21-slim AS frontend
66

7-
COPY . .
7+
COPY . /app
8+
WORKDIR /app
89

9-
RUN npm install && npm run build
10+
RUN npm i && npm run build
1011

1112
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.21
1213

@@ -18,7 +19,7 @@ RUN go mod download
1819

1920
COPY go go
2021
COPY main.go .
21-
COPY --from=frontend dist dist
22+
COPY --from=frontend /app/dist dist
2223

2324
RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} \
2425
go build -o /usr/bin/mini-mail-dev && \

0 commit comments

Comments
 (0)