Files
manuals/Dockerfile

22 lines
355 B
Docker
Raw Normal View History

2019-03-22 15:51:47 -06:00
FROM golang:1.12.1 AS builder
RUN set -ex && \
apt-get update && \
apt-get --no-install-recommends --yes install \
libxml2-dev \
libonig-dev
RUN mkdir /app
ADD . /app
WORKDIR /app
2019-03-22 17:30:30 -06:00
RUN go build -ldflags="-w -s" -o server
2019-03-22 15:51:47 -06:00
FROM alpine:latest AS production
COPY --from=builder /app .
VOLUME /Manuals
EXPOSE 8080
CMD ["./server"]