mirror of
https://github.com/tiyn/dockerfiles.git
synced 2025-12-31 05:39:46 +01:00
initial commit: migration
Dockerfiles are now stored in one repository
This commit is contained in:
19
gopher-server/src/Dockerfile
Normal file
19
gopher-server/src/Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
||||
FROM ubuntu:18.04
|
||||
|
||||
MAINTAINER mail@martenkante.de
|
||||
|
||||
ENV SERVER_NAME localhost
|
||||
|
||||
RUN apt-get update
|
||||
|
||||
RUN apt-get install pygopherd -y
|
||||
|
||||
ADD run.sh /
|
||||
|
||||
RUN chmod +x run.sh
|
||||
|
||||
VOLUME /var/gopher
|
||||
|
||||
EXPOSE 70
|
||||
|
||||
CMD ["./run.sh"]
|
||||
7
gopher-server/src/run.sh
Normal file
7
gopher-server/src/run.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
sed -i '30i servername='$SERVER_NAME /etc/pygopherd/pygopherd.conf
|
||||
|
||||
/etc/init.d/pygopherd start
|
||||
|
||||
while true; do sleep 1000; done
|
||||
Reference in New Issue
Block a user