prepare for docker env

This commit is contained in:
2024-12-09 01:57:18 +05:00
parent f9cac92858
commit fd4e147683
4 changed files with 34 additions and 0 deletions

13
.build/prod/Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
FROM node:18
# Use bash as the default shell
SHELL ["/bin/bash", "-c"]
ENV NODE_ENV=production
WORKDIR /var/www/html
COPY .. /var/www/html
RUN yarn install && yarn build
CMD yarn start