tangled
alpha
login
or
join now
edavis.dev
/
plcwatch
1
fork
atom
this repo has no description
1
fork
atom
overview
issues
pulls
pipelines
add Dockerfile, compose.yaml
Eric Davis
11 months ago
912472d8
76771805
+18
2 changed files
expand all
collapse all
unified
split
Dockerfile
compose.yaml
+12
Dockerfile
···
1
1
+
FROM golang:1.23 AS builder
2
2
+
WORKDIR /app
3
3
+
COPY go.mod go.sum ./
4
4
+
RUN go mod download
5
5
+
COPY . .
6
6
+
RUN CGO_ENABLED=0 GOOS=linux go build -o /app/plcwatch
7
7
+
FROM alpine:latest
8
8
+
RUN apk --no-cache add ca-certificates
9
9
+
RUN adduser -D appuser
10
10
+
USER appuser
11
11
+
COPY --from=builder /app/plcwatch /plcwatch
12
12
+
ENTRYPOINT ["/plcwatch"]
+6
compose.yaml
···
1
1
+
services:
2
2
+
app:
3
3
+
container_name: plcwatch
4
4
+
build:
5
5
+
context: .
6
6
+
dockerfile: ./Dockerfile