You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
441 B
31 lines
441 B
# build static files
|
|
FROM node:carbon-alpine as build-pxportal
|
|
WORKDIR /usr/src/app
|
|
|
|
COPY src/portal-srv/package*.json ./
|
|
|
|
# RUN ls -l
|
|
|
|
RUN npm install
|
|
|
|
COPY src/portal-srv/ .
|
|
|
|
# final image
|
|
FROM node:carbon-alpine
|
|
|
|
## install ssh
|
|
RUN apk add --no-cache \
|
|
openssh-client \
|
|
ca-certificates \
|
|
bash
|
|
|
|
WORKDIR /usr/app
|
|
|
|
# pkg not working in docker
|
|
COPY --from=build-pxportal /usr/src/app/ .
|
|
|
|
|
|
EXPOSE 8889
|
|
|
|
ENTRYPOINT ["node", "index.js"]
|
|
|