mirror of https://github.com/nealey/eris.git
Dockerize
This commit is contained in:
parent
673aed81a2
commit
48dbc0e8e0
|
@ -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", "-."]
|
||||||
|
|
Loading…
Reference in New Issue