21 lines
343 B
Docker
21 lines
343 B
Docker
# FROM node:current-slim
|
|
FROM node:current-alpine
|
|
ARG VERSION
|
|
ENV VERSION ${VERSION:-development}
|
|
|
|
WORKDIR /app
|
|
|
|
COPY ./Docker/start.sh ./package*.json ./Docker/ecosystem.config.json /app/
|
|
|
|
COPY ./public /app/public
|
|
|
|
RUN npm install pm2 -g && npm install
|
|
|
|
# RUN ls -lh .
|
|
|
|
EXPOSE 9000
|
|
|
|
RUN chmod +x /app/start.sh
|
|
|
|
ENTRYPOINT ["/app/start.sh"]
|