Skip to content
Snippets Groups Projects
Select Git revision
  • e212795ae78b2df0490a42e00b4030d2f2ff3b19
  • develop default protected
  • congestioncontrol
  • merge-v-data-collection-spammer-0.8.2
  • WIP-merge-v-data-collection-spammer-0.8.2
  • merge-v-data-collection-spammer-0.7.7
  • tmp
  • test-masterpow-fixing
  • test-masterpow
  • test-echo
  • v-data-collection
  • v-data-collection-spammer
  • tmp-dump-spam-info
  • dump-msg-info-0.3.1
  • test-dump-message-info
  • spammer-exprandom
  • extra/tutorial
  • without_tipselection
  • hacking-docker-network
  • hacking-docker-network-0.2.3
  • master
  • v0.2.3
22 results

.prettierrc

Blame
  • Dockerfile 753 B
    # we need to use alpine to build since cgo is required
    FROM golang:1.12-alpine AS build
    RUN apk add --no-cache git gcc g++
    
    # Set the current Working Directory inside the container
    RUN mkdir /goshimmer
    WORKDIR /goshimmer
    
    # Download dependencies
    COPY go.mod . 
    COPY go.sum .
    RUN go mod download
    
    # Copy everything from the current directory to the PWD(Present Working Directory) inside the container
    COPY . .
    
    # Build
    RUN CGO_ENABLED=1 GOOS=linux go build -o /go/bin/goshimmer
    
    FROM alpine:latest  
    
    RUN apk --no-cache add ca-certificates
    
    WORKDIR /app
    
    VOLUME /app/mainnetdb
    
    EXPOSE 14666/tcp
    EXPOSE 14626/udp
    EXPOSE 14626/tcp
    
    # Copy the Pre-built binary file from the previous stage
    COPY --from=build /go/bin/goshimmer .
    
    ENTRYPOINT ["./goshimmer"]