Initial commit of Makefile, Dockerfile
This commit is contained in:
parent
1fc6120380
commit
045371b63b
2 changed files with 40 additions and 0 deletions
33
Dockerfile
Normal file
33
Dockerfile
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
FROM python:3.13-alpine
|
||||||
|
|
||||||
|
EXPOSE 1190
|
||||||
|
|
||||||
|
RUN mkdir -p /etc/xenu-nntp
|
||||||
|
RUN mkdir -p /var/run/xenu-nntp
|
||||||
|
RUN mkdir -p /var/lib/xenu-nntp
|
||||||
|
RUN mkdir -p /var/opt/xenu-nntp/bin
|
||||||
|
RUN mkdir -p /var/opt/xenu-nntp/lib
|
||||||
|
|
||||||
|
COPY <<EOF /etc/xenu-nntp/server.conf
|
||||||
|
[daemon]
|
||||||
|
pidfile = /var/run/xenu-nntp/server.pid
|
||||||
|
|
||||||
|
[listen]
|
||||||
|
host = 0.0.0.0, ::
|
||||||
|
port = 1190
|
||||||
|
tls = yes
|
||||||
|
|
||||||
|
[tls]
|
||||||
|
cert = /etc/xenu-nntp/cert.pem
|
||||||
|
key = /etc/xenu-nntp/key.pem
|
||||||
|
|
||||||
|
[database]
|
||||||
|
path = /var/lib/xenu-nntp/db.sqlite3
|
||||||
|
EOF
|
||||||
|
|
||||||
|
COPY bin/xenu-nntp-* /var/opt/xenu-nntp/bin
|
||||||
|
COPY lib/xenu_nntp/*.py /var/opt/xenu-nntp/lib
|
||||||
|
|
||||||
|
ENV PYTHONPATH=/var/opt/xenu-nntp/lib
|
||||||
|
|
||||||
|
CMD set -xe; /var/opt/xenu-nntp/bin/xenu-nntp-server
|
7
Makefile
Normal file
7
Makefile
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
include mk/config.mk
|
||||||
|
|
||||||
|
all:
|
||||||
|
$(DOCKER) image build --tag $(IMAGE_TAG) .
|
||||||
|
|
||||||
|
publish:
|
||||||
|
$(DOCKER) image push $(IMAGE_TAG)
|
Loading…
Add table
Reference in a new issue