23 lines
370 B
Docker
23 lines
370 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 ./app /app/app
|
||
|
|
||
|
COPY ./libs /app/libs
|
||
|
|
||
|
COPY ./data /app/data
|
||
|
|
||
|
RUN npm install pm2 -g && npm install
|
||
|
|
||
|
# RUN ls -lh .
|
||
|
|
||
|
RUN chmod +x /app/start.sh
|
||
|
|
||
|
ENTRYPOINT ["/app/start.sh"]
|