chore: improve docker image

This commit is contained in:
tdurieux
2021-09-06 11:57:37 +02:00
parent 51e7aabb90
commit a3a8667d6d

View File

@@ -5,9 +5,8 @@ EXPOSE $PORT
WORKDIR /app
RUN npm install -g nodemon
COPY package*.json .
COPY package.json .
COPY package-lock.json .
RUN npm install
@@ -15,4 +14,4 @@ COPY src .
COPY index.ts .
COPY public .
CMD [ "nodemon", "--transpile-only", "index.ts" ]
CMD [ "npm", "run", "start" ]