mirror of
https://github.com/FranP-code/shortly.git
synced 2025-10-13 00:43:28 +00:00
added production enviroment check
This commit is contained in:
@@ -12,4 +12,6 @@ WORKDIR "/usr/src"
|
||||
|
||||
RUN yarn
|
||||
|
||||
CMD ["yarn", "dev"]
|
||||
ARG NODE_ENV
|
||||
|
||||
CMD if [ "$NODE_ENV" = "development" ] ; then yarn dev ; else yarn start ; fi
|
||||
Reference in New Issue
Block a user