-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (24 loc) · 803 Bytes
/
Dockerfile
File metadata and controls
34 lines (24 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Build stage
FROM golang:1.24.5-alpine AS build
WORKDIR /src
RUN apk add --no-cache make git
# Copy over everything.
COPY . .
RUN go mod download && go mod verify
RUN make build
# Run stage
FROM alpine:latest
LABEL org.opencontainers.image.title="stremio-addon-titlovi"
LABEL org.opencontainers.image.description="Stremio addon for Titlovi.com"
LABEL org.opencontainers.image.source="https://github.com/AdivonSlav/stremio-addon-titlovi"
LABEL org.opencontainers.image.licenses="Apache-2.0"
# Set the working directory
WORKDIR /app
# Copy the binary from the build stage
COPY --from=build /src/build/addon .
# Copy the HTML web templates.
COPY --from=build /src/build/web/templates ./web/templates/
# Expose the default port.
EXPOSE 5555
# Set the entrypoint command
ENTRYPOINT ["/app/addon"]