Created
August 4, 2024 22:08
-
-
Save AndBondStyle/ec7278f40a4ada7800b49c12aa68a153 to your computer and use it in GitHub Desktop.
Foxglove Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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