migrate dockerfile to npm

This commit is contained in:
leander committed 2025-01-15 14:53:51 +01:00
1 parent e70ebbc5ab
commit bd390b8cc3
1 file changed
+4 -4
+4 -4
View File
@@ -3,13 +3,13 @@ FROM node:18-alpine
WORKDIR /app
COPY package.json ./
COPY yarn.lock ./
RUN yarn install
COPY package-lock.json ./
RUN npm install
COPY . .
RUN yarn build
RUN npm run build
EXPOSE 5000
CMD ["yarn", "serve", "--host", "--port", "5000"]
CMD ["npm", "run", "serve", "--host", "--port", "5000"]