-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (14 loc) · 609 Bytes
/
Dockerfile
File metadata and controls
22 lines (14 loc) · 609 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM golang:1.21.6-bookworm as build-env
WORKDIR /tmp/github.com/tarkov-database/rest-api
COPY . .
RUN make bin && \
mkdir -p /usr/share/tarkov-database/rest-api && \
mv -t /usr/share/tarkov-database/rest-api apiserver
FROM gcr.io/distroless/base-debian12
LABEL homepage="https://tarkov-database.com"
LABEL repository="https://github.com/tarkov-database/rest-api"
LABEL maintainer="Markus Wiegand <mail@morphy2k.dev>"
LABEL org.opencontainers.image.source="https://github.com/tarkov-database/rest-api"
COPY --from=build-env /usr/share/tarkov-database/rest-api /
EXPOSE 8080
CMD ["/apiserver"]