diff options
| author | Adam Mathes <adam@adammathes.com> | 2026-02-17 19:34:08 -0800 |
|---|---|---|
| committer | Adam Mathes <adam@adammathes.com> | 2026-02-17 19:35:55 -0800 |
| commit | 5c5f440085255bf7f11af589faa4fa14d74f9294 (patch) | |
| tree | dcce0b145c199e4fef9ce2832b0b1da55a17cc6a /Dockerfile | |
| parent | 9db36ae402dbb74f7223a4efc8b2483086684e38 (diff) | |
| download | neko-5c5f440085255bf7f11af589faa4fa14d74f9294.tar.gz neko-5c5f440085255bf7f11af589faa4fa14d74f9294.tar.bz2 neko-5c5f440085255bf7f11af589faa4fa14d74f9294.zip | |
Fix scrolling behavior, CI linting, and update Dockerfile
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -1,9 +1,9 @@ # Stage 1: Frontend Build FROM node:20-slim AS frontend-builder WORKDIR /app/frontend -COPY frontend/package*.json ./ +COPY frontend-vanilla/package*.json ./ RUN npm install -COPY frontend/ ./ +COPY frontend-vanilla/ ./ RUN npm run build # Stage 2: Backend Build @@ -14,12 +14,13 @@ RUN go mod download COPY . . # Copy built frontend assets from Stage 1 -# Ensure the target directory structure matches what embed expects in web/web.go -RUN mkdir -p web/dist/v2 -COPY --from=frontend-builder /app/frontend/dist ./web/dist/v2 +RUN mkdir -p web/dist/v3 +COPY --from=frontend-builder /app/frontend/dist/ ./web/dist/v3/ -# Build the binary -RUN go build -o neko ./cmd/neko +# Build the binary with version flags +ARG VERSION=0.3 +ARG BUILD=docker +RUN go build -ldflags "-X main.Version=${VERSION} -X main.Build=${BUILD}" -o neko ./cmd/neko # Stage 3: Final Image FROM debian:bullseye-slim |
