-
Notifications
You must be signed in to change notification settings - Fork 76
/
Dockerfile
24 lines (14 loc) · 654 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM golang:1.22-alpine3.19 AS build
ENV CGO_ENABLED 0
WORKDIR /go/src/github.com/wormi4ok/evernote2md
RUN set -xe && apk add --no-cache git
COPY . .
RUN go test ./... && go install -trimpath -ldflags "-s -w -X main.version=$(git describe --tags --abbrev=0)"
FROM alpine:3.19
LABEL org.opencontainers.image.title="evernote2md" \
org.opencontainers.image.description="Convert Evernote .enex export file to Markdown" \
org.opencontainers.image.source="https://github.com/wormi4ok/evernote2md" \
org.opencontainers.image.authors="wormi4ok"
COPY --from=build /go/bin/evernote2md /
ENTRYPOINT ["/evernote2md"]
CMD [ "-h" ]