This repository has been archived on 2024-12-02. You can view files and clone it, but cannot push or open issues or pull requests.
magnetico-go-migrator/Dockerfile

23 lines
421 B
Docker
Raw Permalink Normal View History

2019-10-19 23:08:38 +00:00
FROM golang:1.13-alpine AS build
WORKDIR /migrator
RUN apk add --no-cache build-base curl git
ADD ./old /migrator/old
ADD ./go.mod /migrator/go.mod
ADD ./magnetico-migrator.go /migrator/magnetico-migrator.go
RUN go build "-ldflags=-s -w" -o /migrator/migrator .
FROM alpine:latest
LABEL maintainer="skobkin-ru@ya.ru"
WORKDIR /
VOLUME /data
COPY --from=build /migrator/migrator /migrator
ENTRYPOINT ["/migrator"]