Public | Automated Build

Last pushed: 7 days ago
Dockerfile
FROM golang:alpine MAINTAINER Thomas Schenker <tommzn@gmx.de> # Create directory for settings RUN mkdir /etc/finacobar # Copy config and credentials ADD ./config.json ./credentials.env /etc/finacobar/ # Add source ADD ./src /go/src/ # Install application RUN go install application # Cleanup RUN rm -fr /go/src/ # Add a user for the service #RUN groupadd -r imguser && \ # useradd -r -m -g imguser -d /home/imguser -s /sbin/nologin -c "Docker image user" imguser && \ # chown -R imguser:imguser /home/imguser #USER imguser # Run the service ENTRYPOINT ["/go/bin/application"] # Enables access to service port EXPOSE 8080
Source Repository