Skip to content

Commit

Permalink
Create Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
alpkeskin committed Sep 19, 2023
1 parent 4e723e6 commit 03387af
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Dockerfile for github.com/alpkeskin/mosint

# Build
FROM golang:1.21.0-alpine AS builder
WORKDIR /app
COPY . /app
WORKDIR /app/v3
RUN go mod download
RUN go build ./cmd/mosint

# Release
FROM alpine:3.18.3
COPY --from=builder /app/v3/mosint /usr/local/bin/

# Copy config file ( Change this to your own config file )
COPY --from=builder /app/example-config.yaml /root/.mosint.yaml

ENTRYPOINT ["mosint"]

0 comments on commit 03387af

Please sign in to comment.