mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
- Node latest LTS - Go latest stable - Fabric 2.5.14, 3.1.3 - Just 1.43.0 - k9s 0.50.15 - Kind 0.30.0 - yq 4.48.1 - nvm 0.40.3 This addresses build breakages due to back-level versions. Signed-off-by: Mark S. Lewis <Mark.S.Lewis@outlook.com>
25 lines
427 B
Docker
25 lines
427 B
Docker
FROM node:lts-alpine AS build
|
|
|
|
RUN apk add --no-cache g++ make python3 dumb-init
|
|
|
|
WORKDIR /app
|
|
|
|
COPY --chown=node:node . /app
|
|
|
|
RUN npm ci
|
|
RUN npm run build
|
|
RUN npm prune --production
|
|
|
|
FROM node:lts-alpine
|
|
ENV NODE_ENV production
|
|
WORKDIR /app
|
|
|
|
COPY --from=build /usr/bin/dumb-init /usr/bin/dumb-init
|
|
COPY --chown=node:node --from=build /app .
|
|
|
|
EXPOSE 3000
|
|
|
|
USER node
|
|
|
|
ENTRYPOINT [ "dumb-init", "--", "npm", "run"]
|
|
CMD ["start"]
|