mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
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.
12 lines
410 B
Docker
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"]
|