* stage 1: project init * stage 2: skeleton with navigation * step 2.5: streams list * step 4: stream playback experience * step 5-6: compose experience * fix: broken record * transcode media particles to mp4 * build: reproducible go generate * build: rename skaffold module for particle processor worker * infra: increase particle processor worker resources Was dealing with OOM errors * tweaks to mobile * log transcode work * view on desktop placeholder * tweak padding * cap video resolution to save on memory * infra: bump memory limits as insurance * ux improvements * update bundle id for mobile * config for mobile
23 lines
470 B
Docker
23 lines
470 B
Docker
# golang two stage build
|
|
FROM golang:1.25 AS first-stage
|
|
|
|
WORKDIR /app
|
|
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download && go mod verify
|
|
|
|
COPY . .
|
|
|
|
WORKDIR /app/cmd/particleprocessorworker
|
|
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o main
|
|
RUN ls
|
|
|
|
FROM alpine:latest AS second-stage
|
|
|
|
RUN apk add --no-cache ffmpeg ca-certificates
|
|
|
|
WORKDIR /app
|
|
COPY --from=first-stage /app/cmd/particleprocessorworker .
|
|
RUN echo "copied over binary to production stage"
|
|
CMD ["./main"]
|