diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f868bf6 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM golang:alpine + +LABEL maintainer="marcel.parciak@mgmail.com" +ENV TOKEN "" + +WORKDIR /etc/postwoman-proxy + +COPY . /etc/postwoman-proxy +RUN ./build.sh linux server + +EXPOSE 9159/tcp + +CMD ["sh", "-c", "/etc/postwoman-proxy/out/linux-server/postwoman-proxy-server --host 0.0.0.0:9159 --token $TOKEN"] diff --git a/build.sh b/build.sh index fff7221..94c7c22 100755 --- a/build.sh +++ b/build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh if [ $# -lt 1 ]; then echo "Usage: $0 []"