Skip to content

Commit a490b81

Browse files
committed
fix dockerfile
1 parent 267a56c commit a490b81

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Dockerfile

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,10 @@ RUN CGO_ENABLED=0 GOOS=linux go build -o api backend/cmd/api/main.go
1212

1313
FROM nginx:1-alpine AS node_final
1414

15-
RUN sed -i 'lidaemon off;' /etc/nginx/nginx.conf
1615
COPY docker/nginx.conf /etc/nginx/conf.d/default.conf
1716
COPY --from=node_builder /src/dist/ /app
1817

19-
CMD ["nginx"]
18+
CMD ["nginx", "-g", "daemon off;"]
2019

2120
FROM gcr.io/distroless/static-debian12 AS go_final
2221

0 commit comments

Comments
 (0)