update docker

This commit is contained in:
2025-08-05 09:52:56 -05:00
parent 8d4c8f71b0
commit 421862fd96
7 changed files with 13 additions and 9 deletions

View File

@@ -6,7 +6,6 @@ WORKDIR /app
# volume for nkode.db
VOLUME /app/data/sqlite
VOLUME /app/data/icons
# Copy go.mod and go.sum files
COPY go.mod go.sum ./
@@ -19,7 +18,7 @@ RUN go mod download
COPY . .
# Build the application
RUN go build -o go-nkode ./cmd
RUN go build -o go-nkode ./cmd/restapi
# Stage 2: Runtime
FROM debian:bookworm-slim
@@ -32,8 +31,6 @@ RUN apt-get update && \
#ENV FRONTEND_HOST=https://app.nkode.tech
#ENV FRONTEND_HOST=http://localhost:8090
ENV SVG_DIR=/app/data/icons
ENV DB_PATH=/app/data/sqlite/nkode.db
ENV SQLITE_DB=/app/data/sqlite/nkode.db
# Set the working directory inside the runtime container