From 9a5c98c6a67ccfea57e0a92df0920e132186de95 Mon Sep 17 00:00:00 2001 From: Marcel Parciak Date: Fri, 17 Apr 2020 14:24:06 +0200 Subject: [PATCH] Changed build.sh from bash to pure sh (I see no bash-specifics in there). Added Dockerfile based on golang:alpine Signed-off-by: Marcel Parciak --- Dockerfile | 13 +++++++++++++ build.sh | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 Dockerfile 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 []"