43ae28ce2c
* First pass at building a version server container image * Actually adding the Dockerfile this branch * Add entrypoint to auto create config file
11 lines
267 B
Docker
11 lines
267 B
Docker
ARG DOCKER_ARCH
|
|
FROM ${DOCKER_ARCH:-amd64}/alpine
|
|
ARG TAG
|
|
ARG GOARCH
|
|
ENV GOARCH ${GOARCH}
|
|
EXPOSE 8080
|
|
WORKDIR /app
|
|
COPY release/${TAG}/versioncontrol_linux_${GOARCH:-amd64} /app/versioncontrol
|
|
COPY cmd/versioncontrol/entrypoint /entrypoint
|
|
ENTRYPOINT ["/entrypoint"]
|