add typescript to backend
This commit is contained in:
parent
0a41568a2e
commit
30b28056de
10 changed files with 221 additions and 67 deletions
|
@ -4,11 +4,10 @@ WORKDIR /usr/src/app
|
|||
|
||||
COPY package*.json ./
|
||||
|
||||
RUN npm install
|
||||
RUN if [ "$NODE_ENV" = "dev" ]; then npm install; else npm install --only=production; fi
|
||||
|
||||
COPY . .
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
# CMD ["npm", "run", "dev"]
|
||||
CMD npm run $NODE_ENV
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue