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.
28 lines
396 B
28 lines
396 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 bash
|
|
#RUN apk add bash docker
|
|
|
|
WORKDIR /usr/app
|
|
|
|
# pkg not working in docker
|
|
COPY --from=build-pxportal /usr/src/app/ .
|
|
|
|
|
|
EXPOSE 8889
|
|
|
|
ENTRYPOINT ["node", "index.js"]
|
|
|