forked from CHESSComputing/MetaData
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (20 loc) · 722 Bytes
/
Dockerfile
File metadata and controls
22 lines (20 loc) · 722 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:latest as go-builder
MAINTAINER Valentin Kuznetsov vkuznet@gmail.com
# build procedure
ENV PROJECT=MetaData
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 && 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 MetaData service"
LABEL org.opencontainers.image.source=https://github.com/chesscomputing/metadata
LABEL org.opencontainers.image.licenses=MIT
WORKDIR /data