fix some stuff lol

This commit is contained in:
skidoodle 2024-10-19 14:32:16 +02:00
parent 9acfc490f0
commit 20d6510053
Signed by: albert
GPG key ID: A06E3070D7D55BF2
10 changed files with 131 additions and 30 deletions

View file

@ -1,5 +1,7 @@
FROM golang:alpine as builder
FROM golang:alpine AS builder
WORKDIR /build
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN go build -o trackncore .
@ -7,8 +9,7 @@ FROM alpine:latest
RUN apk --no-cache add ca-certificates
WORKDIR /app/
COPY --from=builder /build/trackncore .
COPY --from=builder /build/.env .
COPY --from=builder /build/profiles.json .
COPY --from=builder /build/data .
COPY --from=builder /build/index.html .
EXPOSE 3000
CMD ["./trackncore"]