forked from RoboCup-SSL/ssl-game-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (19 loc) · 644 Bytes
/
Dockerfile
File metadata and controls
21 lines (19 loc) · 644 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM node:16.15-alpine3.15 AS build_node
WORKDIR /tmp/ssl-game-controller
COPY . .
RUN yarn install
RUN yarn build
FROM golang:1.18-alpine3.15 AS build_go
WORKDIR /go/src/github.com/RoboCup-SSL/ssl-game-controller
COPY . .
COPY --from=build_node /tmp/ssl-game-controller/internal/app/ui/dist internal/app/ui/dist
RUN go install -v ./cmd/ssl-game-controller
# Start fresh from a smaller image
FROM alpine:3.16
COPY --from=build_go /go/bin/ssl-game-controller /app/ssl-game-controller
COPY config config
RUN chown -R 1000: config
USER 1000
EXPOSE 8081 10007 10008 10011 10009
ENTRYPOINT ["/app/ssl-game-controller", "-address", ":8081"]
CMD []