2022-10-13 23:59:39 +03:00
|
|
|
FROM node:16.18.0
|
2019-06-06 04:06:48 +03:00
|
|
|
ENV IS_DOCKER true
|
2019-02-12 16:25:02 +03:00
|
|
|
|
2022-08-23 15:59:09 +03:00
|
|
|
# Run the container as an unprivileged user
|
|
|
|
RUN groupadd docker && useradd -g docker -s /bin/bash -m docker
|
|
|
|
WORKDIR /home/docker/leon
|
2022-10-13 23:59:39 +03:00
|
|
|
RUN chown --recursive docker /home/docker/leon
|
2022-08-23 15:59:09 +03:00
|
|
|
USER docker
|
2022-10-13 23:59:39 +03:00
|
|
|
|
2022-08-23 15:59:09 +03:00
|
|
|
COPY --chown=docker ./ ./
|
2021-11-07 05:24:00 +03:00
|
|
|
RUN npm install
|
2019-02-12 16:25:02 +03:00
|
|
|
RUN npm run build
|
2019-02-19 11:19:37 +03:00
|
|
|
|
2019-02-23 16:27:28 +03:00
|
|
|
CMD ["npm", "start"]
|