|
FROM node:alpine
|
|
RUN mkdir -p /usr/src/app/public
|
|
WORKDIR /usr/src/app
|
|
COPY . /usr/src/app
|
|
RUN npm install
|
|
EXPOSE 8080
|
|
RUN chmod +x /usr/src/app/docker-entrypoint.sh
|
|
COPY /usr/src/app/docker-entrypoint.sh /
|
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
|
CMD [ "npm", "start"] |