Fix docker build
Docker / build-and-push-image (push) Successful in 12m9s

This commit is contained in:
Jon Staab
2026-05-11 12:28:42 -07:00
parent 6ce0fbbbe6
commit 6bafb62414
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -2,11 +2,11 @@
# Uses .env from build context for config (logo, branding, etc.) # Uses .env from build context for config (logo, branding, etc.)
# Optional: docker build --build-arg VITE_BUILD_HASH=$(git rev-parse --short HEAD) -t flotilla . # Optional: docker build --build-arg VITE_BUILD_HASH=$(git rev-parse --short HEAD) -t flotilla .
FROM node:20-bookworm AS builder FROM node:22-bookworm AS builder
RUN apt-get update && apt-get install -y --no-install-recommends curl RUN apt-get update && apt-get install -y --no-install-recommends curl
RUN npm install -g pnpm@latest RUN npm install -g pnpm@10.33.0
WORKDIR /app WORKDIR /app
@@ -22,7 +22,7 @@ ENV VITE_BUILD_HASH=${VITE_BUILD_HASH}
ENV NODE_OPTIONS=--max_old_space_size=16384 ENV NODE_OPTIONS=--max_old_space_size=16384
RUN pnpm run build RUN pnpm run build
FROM node:20-alpine FROM node:22-alpine
WORKDIR /app WORKDIR /app
+2 -2
View File
@@ -37,12 +37,12 @@ pnpm run start
Or, if you prefer to use a container: Or, if you prefer to use a container:
```sh ```sh
podman run -d -p 3000:3000 ghcr.io/coracle-social/flotilla:latest docker run -d -p 3000:3000 ghcr.io/coracle-social/flotilla:latest
``` ```
Alternatively, you can copy the build files into a directory of your choice and serve it yourself: Alternatively, you can copy the build files into a directory of your choice and serve it yourself:
```sh ```sh
mkdir ./mount mkdir ./mount
podman run -v ./mount:/app/mount ghcr.io/coracle-social/flotilla:latest bash -c 'cp -r build/* mount' docker run -v ./mount:/app/mount ghcr.io/coracle-social/flotilla:latest bash -c 'cp -r build/* mount'
``` ```