Skip to content

Commit

Permalink
Updated Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
bsrinivas8687 committed Mar 4, 2023
1 parent 4da0443 commit 40163a1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 16 deletions.
15 changes: 5 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
FROM golang:1.20-alpine3.17 AS build

COPY . /go/src/github.com/sentinel-official/dvpn-node/
COPY . /root/dvpn-node/

RUN apk add git gcc linux-headers make musl-dev && \
cd /go/src/github.com/sentinel-official/dvpn-node/ && \
make install --jobs=$(nproc)

RUN cd /root/ && \
apk add autoconf automake bash file g++ git libtool make unbound-dev && \
git clone https://github.com/handshake-org/hnsd.git --branch=master --depth=1 && \
cd /root/hnsd/ && \
bash autogen.sh && sh configure && make --jobs=$(nproc)
RUN apk add autoconf automake bash file g++ gcc git libtool linux-headers make musl-dev unbound-dev && \
cd /root/dvpn-node/ && make --jobs=$(nproc) install && \
git clone --branch=master --depth=1 https://github.com/handshake-org/hnsd.git /root/hnsd && \
cd /root/hnsd/ && bash autogen.sh && sh configure && make --jobs=$(nproc)

FROM alpine:3.17

Expand Down
12 changes: 6 additions & 6 deletions cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,14 +208,14 @@ func StartCmd() *cobra.Command {
router.Use(corsMiddleware)
api.RegisterRoutes(ctx, router)

ctx = ctx.WithLogger(log).
WithService(service).
WithHandler(router).
WithConfig(config).
ctx = ctx.WithBandwidth(bandwidth).
WithClient(client).
WithLocation(location).
WithConfig(config).
WithDatabase(database).
WithBandwidth(bandwidth)
WithHandler(router).
WithLocation(location).
WithLogger(log).
WithService(service)

n := node.NewNode(ctx)
if err := n.Initialize(); err != nil {
Expand Down

0 comments on commit 40163a1

Please sign in to comment.