···11ARG TAG=dev
2233# Stage 1: Build the Go binary using Just
44-FROM golang:1.23.2 AS builder
44+FROM golang:1.23.2-alpine3.20 AS builder
5566# Install Just in the builder stage
77-RUN apt-get update && apt-get install -y curl
77+RUN apk add --no-cache curl bash git
88RUN curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to /app
991010ENV PATH="/app:${PATH}"
···2626RUN /app/just build notella ${TAG}
27272828# Stage 2: Create a lightweight image with just the binary
2929-FROM alpine:latest
2929+FROM alpine:3.20 AS runner
30303131# Set the working directory in the container
3232WORKDIR /app
33333434# Copy the binary from the builder stage
3535-COPY --from=builder /app/notella .
3636-3737-# Expose a port (optional)
3838-EXPOSE 8080
3535+COPY --from=builder /app/notella /app/notella
39364037# Command to run the binary
4141-CMD ["./notella"]
3838+CMD ["/app/notella"]
3939+