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 <marcel.parciak@gmail.com>
This commit is contained in:
parent
55c849f0a1
commit
9a5c98c6a6
2 changed files with 14 additions and 1 deletions
13
Dockerfile
Normal file
13
Dockerfile
Normal file
|
@ -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"]
|
2
build.sh
2
build.sh
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
if [ $# -lt 1 ]; then
|
if [ $# -lt 1 ]; then
|
||||||
echo "Usage: $0 <darwin|linux|windows> [<server|desktop>]"
|
echo "Usage: $0 <darwin|linux|windows> [<server|desktop>]"
|
||||||
|
|
Loading…
Reference in a new issue