mirror of
https://github.com/i701/sarlink-portal.git
synced 2025-11-21 12:09:04 +00:00
prepare for docker env
This commit is contained in:
13
.build/prod/Dockerfile
Normal file
13
.build/prod/Dockerfile
Normal 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
|
||||
Reference in New Issue
Block a user