-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (16 loc) · 573 Bytes
/
Dockerfile
File metadata and controls
25 lines (16 loc) · 573 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM umputun/baseimage:buildgo-latest as build
ADD . /build/dkll
WORKDIR /build/dkll
RUN \
revision=$(/script/git-rev.sh) && \
echo "revision=${revision}" && \
go build -o dkll -ldflags "-X main.revision=$revision -s -w" ./app
FROM umputun/baseimage:app-latest
# enables automatic changelog generation by tools like Dependabot
LABEL org.opencontainers.image.source="https://github.com/umputun/dkill"
COPY --from=build /build/dkll/dkll /srv/dkll
RUN chown -R app:app /srv
RUN chmod +x /srv/dkll
EXPOSE 8080 5514
WORKDIR /srv
CMD ["/srv/dkll", "server"]