-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (21 loc) · 774 Bytes
/
Dockerfile
File metadata and controls
23 lines (21 loc) · 774 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 golang:latest as go-builder
MAINTAINER Valentin Kuznetsov vkuznet@gmail.com
# build procedure
ENV PROJECT=SyncService
ENV WDIR=/data
WORKDIR $WDIR
RUN mkdir /build
RUN git clone https://github.com/CHESSComputing/$PROJECT
ARG CGO_ENABLED=0
RUN cd $PROJECT && make && cp srv /build
#RUN cd $PROJECT && make && cp srv /build && cp -r static /build
# build final image for given image
FROM alpine as final
# FROM gcr.io/distroless/static as final
RUN mkdir -p /data
COPY --from=go-builder /build/srv /data
#COPY --from=go-builder /build/static /data/static
LABEL org.opencontainers.image.description="FOXDEN SyncService service"
LABEL org.opencontainers.image.source=https://github.com/chesscomputing/syncservice
LABEL org.opencontainers.image.licenses=MIT
WORKDIR /data