-
-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (21 loc) · 744 Bytes
/
Dockerfile
File metadata and controls
23 lines (21 loc) · 744 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM node:20-alpine AS ui-builder
WORKDIR /src/ui
COPY ui/package.json ui/yarn.lock ui/.yarnrc.yml ./
RUN yarn install
COPY ui/ .
RUN yarn build
FROM golang:1.24-alpine AS go-builder
RUN apk add --no-cache bash
WORKDIR /src
COPY . .
RUN go mod download
COPY --from=ui-builder /src/ui/dist/ /src/application/webserver/frontend/files/
RUN mv /src/application/webserver/frontend/files/fs/* /src/application/webserver/frontend/files/ 2>/dev/null || true
RUN OUTPUT=/gatesentry-bin ./build.sh --no-ui
FROM alpine:3.20
RUN apk add --no-cache ca-certificates tzdata
WORKDIR /usr/local/gatesentry
COPY --from=go-builder /gatesentry-bin ./
RUN mkdir -p /usr/local/gatesentry/gatesentry
EXPOSE 53/udp 53/tcp 10413 10786
ENTRYPOINT ["./gatesentry-bin"]