Files
manuals/Dockerfile

19 lines
291 B
Docker
Raw Normal View History

2019-03-22 18:00:45 -06:00
FROM golang:1.12.1
2019-03-22 15:51:47 -06:00
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:52:27 -06:00
RUN GOOS=linux go build -ldflags="-w -s"
2019-03-22 15:51:47 -06:00
2019-03-22 18:00:45 -06:00
VOLUME /app/Manuals
2019-03-22 15:51:47 -06:00
EXPOSE 8080
2019-03-22 18:00:45 -06:00
CMD ["/app/Server"]