Skip to content

Instantly share code, notes, and snippets.

@konstantinzolotarev
Created September 16, 2019 07:57
Show Gist options
  • Save konstantinzolotarev/b4f16b4362ab15f5cba7273c161124ae to your computer and use it in GitHub Desktop.
Save konstantinzolotarev/b4f16b4362ab15f5cba7273c161124ae to your computer and use it in GitHub Desktop.
FROM golang:1.9
ENV API_BOLTDB_PATH='bolts_db/bolt.db'
# Copy the local package files to the container’s workspace.
WORKDIR /go/src/bitbucket.org/fake/forwarder/fake_wallet
# Install our dependencies
RUN go get github.com/Sirupsen/logrus && \
go get github.com/labstack/echo && \
go get github.com/dgrijalva/jwt-go && \
go get github.com/boltdb/bolt
ADD . /go/src/bitbucket.org/fake/forwarder/fake_wallet
#ADD main.go /go/src/bitbucket.org/fake/forwarder/fake_wallet/main.go
#ADD bolts_db /go/src/bitbucket.org/fake/forwarder/fake_wallet/bolts_db
RUN chmod -R 777 bolts_db && \
go install bitbucket.org/fake/forwarder/fake_wallet
# Port on starting golang server
EXPOSE 1100
ENTRYPOINT /go/bin/fake_wallet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment