Dockerize

This commit is contained in:
Neale Pickett 2017-09-11 01:48:41 +00:00
parent 673aed81a2
commit 48dbc0e8e0
1 changed files with 19 additions and 0 deletions

19
Dockerfile Normal file
View File

@ -0,0 +1,19 @@
FROM alpine
RUN apk --no-cache add s6-networking
RUN apk --no-cache add build-base
COPY . /usr/local/src/eris
RUN make -C /usr/local/src/eris
RUN cp /usr/local/src/eris/eris /usr/bin
RUN rm -rf /usr/local/src/eris
RUN apk --no-cache del build-base
RUN addgroup -S -g 800 www
RUN adduser -S -u 800 -G www www
RUN mkdir /www
WORKDIR /www
CMD ["s6-tcpserver", "-u", "80", "-g", "80", "0.0.0.0", "80", "/usr/bin/eris", "-."]