update: dockerfile
This commit is contained in:
@@ -1,10 +1,17 @@
|
|||||||
FROM registry.hamdocker.ir/seniorkian/node:18-alpine
|
FROM registry.hamdocker.ir/seniorkian/node:18-alpine
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
|
|
||||||
run npm config set registry https://mirror-npm.runflare.com
|
run npm config set registry https://mirror-npm.runflare.com
|
||||||
|
|
||||||
RUN npm ci --omit=dev
|
RUN npm ci --omit=dev
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
ENV PORT=3000
|
ENV PORT=3000
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
CMD ["npm", "start"]
|
CMD ["npm", "start"]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user