+16
@@ -0,0 +1,16 @@
|
|||||||
|
FROM alpine:3.8
|
||||||
|
|
||||||
|
# Make directories
|
||||||
|
# Copy the static executable and config.
|
||||||
|
|
||||||
|
RUN mkdir -p /opt/binnit/log
|
||||||
|
RUN mkdir -p /opt/binnit/html
|
||||||
|
RUN mkdir -p /opt/binnit/paste
|
||||||
|
COPY opt/binnit /opt/binnit/
|
||||||
|
COPY opt/binnit.cfg /opt/binnit/
|
||||||
|
|
||||||
|
# Set port
|
||||||
|
EXPOSE 80
|
||||||
|
|
||||||
|
# Run the binary.
|
||||||
|
ENTRYPOINT ["/opt/binnit/binnit","-c","/opt/binnit/binnit.cfg"]
|
||||||
Executable
BIN
Binary file not shown.
@@ -0,0 +1,7 @@
|
|||||||
|
server_name=paste.jpi.io
|
||||||
|
bind_addr=0.0.0.0
|
||||||
|
bind_port=80
|
||||||
|
paste_dir=/opt/binnit/paste
|
||||||
|
templ_dir=/opt/binnit/html
|
||||||
|
max_size=16384
|
||||||
|
log_file=/opt/binnit/log/binnit.log
|
||||||
Reference in New Issue
Block a user