Spaces:
Running
Running
Update
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
@@ -3,7 +3,7 @@ FROM golang:1.23-alpine AS builder
|
|
3 |
|
4 |
WORKDIR /home/appuser
|
5 |
COPY go.mod go.sum .
|
6 |
-
COPY index.html .
|
7 |
COPY assets ./assets
|
8 |
RUN go mod download
|
9 |
COPY main.go .
|
@@ -17,6 +17,8 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
|
|
17 |
FROM --platform=linux/amd64 gcr.io/distroless/static-debian12:nonroot as server
|
18 |
|
19 |
WORKDIR /home/appuser
|
|
|
|
|
20 |
COPY --from=builder --chown=nonroot:nonroot /bin/mock-server ./bin/mock-server
|
21 |
|
22 |
EXPOSE 3001/tcp
|
|
|
3 |
|
4 |
WORKDIR /home/appuser
|
5 |
COPY go.mod go.sum .
|
6 |
+
COPY index.html index.html
|
7 |
COPY assets ./assets
|
8 |
RUN go mod download
|
9 |
COPY main.go .
|
|
|
17 |
FROM --platform=linux/amd64 gcr.io/distroless/static-debian12:nonroot as server
|
18 |
|
19 |
WORKDIR /home/appuser
|
20 |
+
COPY index.html index.html
|
21 |
+
COPY assets ./assets
|
22 |
COPY --from=builder --chown=nonroot:nonroot /bin/mock-server ./bin/mock-server
|
23 |
|
24 |
EXPOSE 3001/tcp
|