Skip to content

Instantly share code, notes, and snippets.

@AndBondStyle
Created August 4, 2024 22:08
Show Gist options
  • Save AndBondStyle/ec7278f40a4ada7800b49c12aa68a153 to your computer and use it in GitHub Desktop.
Save AndBondStyle/ec7278f40a4ada7800b49c12aa68a153 to your computer and use it in GitHub Desktop.
Foxglove Dockerfile
# Build stage
FROM node:16 as build
WORKDIR /src
COPY . ./
RUN corepack enable
RUN yarn install --immutable
RUN yarn run web:build:prod
# Release stage
FROM caddy:2.5.2-alpine
WORKDIR /src
COPY --from=build /src/web/.webpack ./
EXPOSE 8080
CMD ["caddy", "file-server", "--listen", ":8080"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment