lightning-terminal/app/Dockerfile
Oliver Gugger fc77836204
make+app: add dockerized builder for app
We dockerize the app build and use that for both the docker build _AND_
the normal build to make sure the static content is fully reproducible
across different systems.
2024-10-24 11:17:49 +02:00

12 lines
410 B
Docker

# Start with a NodeJS base image that also contains yarn.
FROM node:22.8.0-bookworm@sha256:bd00c03095f7586432805dbf7989be10361d27987f93de904b1fc003949a4794 as nodejsbuilder
RUN apt-get update && apt-get install -y git
ENV HOME=/tmp
RUN mkdir /build
WORKDIR /build
CMD ["/bin/bash", "-c", "chown $(id -u):$(id -g) /build && cd app && rm -rf node_modules && yarn cache clean && yarn install && yarn build"]