# This file is generated by Nx.
#
# Build the docker image with `npx nx docker-build <%= project %>`.
# Tip: Modify "docker-build" options in project.json to change docker build args.
#
# Run the container with `docker run -p 3000:3000 -t <%= project %>`.
FROM docker.io/node:lts-alpine

ENV HOST=0.0.0.0
ENV PORT=3000

WORKDIR /app

RUN addgroup --system <%= project %> && \
          adduser --system -G <%= project %> <%= project %>

COPY <%= buildLocation %> <%= project %>
RUN chown -R <%= project %>:<%= project %> .

# You can remove this install step if you build with `--bundle` option.
# The bundled output will include external dependencies.
RUN npm --prefix <%= project %> --omit=dev -f install

CMD [ "node", "<%= project %>" ]
