mirror of
https://github.com/gabehf/Koito.git
synced 2026-03-07 13:38:15 -08:00
feat: version v0.0.2
This commit is contained in:
parent
0dceaf017a
commit
7ff317756f
36 changed files with 336 additions and 160 deletions
13
Dockerfile
13
Dockerfile
|
|
@ -1,15 +1,22 @@
|
|||
FROM node AS frontend
|
||||
|
||||
ARG KOITO_VERSION
|
||||
ENV VITE_KOITO_VERSION=$KOITO_VERSION
|
||||
ENV BUILD_TARGET=docker
|
||||
|
||||
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
|
||||
|
||||
ARG KOITO_VERSION
|
||||
ENV CGO_ENABLED=1
|
||||
ENV GOOS=linux
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apt-get update && \
|
||||
|
|
@ -21,7 +28,7 @@ RUN go mod download
|
|||
|
||||
COPY . .
|
||||
|
||||
RUN CGO_ENABLED=1 GOOS=linux go build -o app ./cmd/api
|
||||
RUN go build -ldflags "-X main.Version=$KOITO_VERSION" -o app ./cmd/api
|
||||
|
||||
|
||||
FROM debian:bookworm-slim AS final
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue