chore: initial public commit

This commit is contained in:
Gabe Farrell 2025-06-11 19:45:39 -04:00
commit fc9054b78c
250 changed files with 32809 additions and 0 deletions

43
Dockerfile Normal file
View file

@ -0,0 +1,43 @@
FROM node AS frontend
WORKDIR /client
COPY ./client/package.json ./client/yarn.lock ./
RUN yarn install
COPY ./client .
ENV BUILD_TARGET=docker
RUN yarn run build
FROM golang:1.23 AS backend
WORKDIR /app
RUN apt-get update && \
apt-get install -y libvips-dev pkg-config && \
rm -rf /var/lib/apt/lists/*
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=1 GOOS=linux go build -o app ./cmd/api
FROM debian:bookworm-slim AS final
WORKDIR /app
RUN apt-get update && \
apt-get install -y libvips42 && \
rm -rf /var/lib/apt/lists/*
COPY --from=backend /app/app ./app
COPY --from=frontend /client/build ./client/build
COPY ./client/public ./client/public
COPY ./assets ./assets
COPY ./db ./db
EXPOSE 4110
ENTRYPOINT ["./app"]