mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
fixed broken image build
This commit is contained in:
parent
cd6d75cbc5
commit
597662fb26
@ -1,26 +1,13 @@
|
|||||||
FROM node:stretch-slim AS builder
|
FROM node:18
|
||||||
USER node
|
|
||||||
|
|
||||||
WORKDIR /home/node
|
|
||||||
|
|
||||||
COPY --chown=node:node . .
|
|
||||||
|
|
||||||
RUN npm install
|
|
||||||
RUN npm run build
|
|
||||||
|
|
||||||
FROM node:stretch-slim
|
|
||||||
|
|
||||||
RUN useradd -ms /bin/bash appuser
|
|
||||||
USER appuser
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY --from=builder --chown=appuser:appuser /home/node/node_modules node_modules
|
COPY . .
|
||||||
COPY --from=builder --chown=appuser:appuser /home/node/package.json .
|
|
||||||
COPY --from=builder --chown=appuser:appuser /home/node/packages packages
|
|
||||||
COPY --from=builder --chown=appuser:appuser /home/node/data/flows.json /root/.node-red/flows.json
|
|
||||||
|
|
||||||
|
RUN npm install
|
||||||
|
|
||||||
EXPOSE 1880
|
ENV NODE_ENV=production
|
||||||
|
|
||||||
CMD [ "npm", "start" ]
|
RUN npm run build
|
||||||
|
|
||||||
|
CMD [ "npm", "start", "--", "data/flows.json" ]
|
Loading…
x
Reference in New Issue
Block a user