Skip to content

Commit 03387af

Browse files
committed
Create Dockerfile
1 parent 4e723e6 commit 03387af

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Dockerfile

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Dockerfile for github.com/alpkeskin/mosint
2+
3+
# Build
4+
FROM golang:1.21.0-alpine AS builder
5+
WORKDIR /app
6+
COPY . /app
7+
WORKDIR /app/v3
8+
RUN go mod download
9+
RUN go build ./cmd/mosint
10+
11+
# Release
12+
FROM alpine:3.18.3
13+
COPY --from=builder /app/v3/mosint /usr/local/bin/
14+
15+
# Copy config file ( Change this to your own config file )
16+
COPY --from=builder /app/example-config.yaml /root/.mosint.yaml
17+
18+
ENTRYPOINT ["mosint"]

0 commit comments

Comments
 (0)