api-base/Dockerfile

13 lines
278 B
Docker
Raw Normal View History

2020-08-15 17:21:27 +00:00
FROM otakukaze/golang-base-image:1-alpine as builder
WORKDIR /data
COPY . .
RUN apk add --no-cache make gcc musl-dev \
&& make
FROM alpine:latest
WORKDIR /data
COPY --from=builder /data/api /usr/bin
COPY ./config/config.yml /data/config.yml
EXPOSE 10230
CMD ["/usr/bin/api"]