# This file is a template, and might need editing before it works on your project.
FROM node:latest
ENV PORT 7777

RUN groupadd apprunner
RUN useradd -g apprunner -m apprunner

WORKDIR /home/apprunner

ARG NODE_ENV
ENV NODE_ENV $NODE_ENV

COPY app/package.json /home/apprunner
RUN npm install

COPY app/ /home/apprunner
USER apprunner
EXPOSE 7777
CMD [ "npm", "start" ]
