Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions StroyCord.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
######### build stage
FROM node:lts-alpine as build
FROM node:lts-alpine AS build

WORKDIR /build
COPY package*.json ./
Expand All @@ -13,13 +13,14 @@ RUN npm run lint && npm run build
######### production stage
FROM node:lts-alpine
ENV NODE_ENV=production
ENV HUSKY=0

WORKDIR /app
RUN apk update && apk add python3 make g++ ffmpeg

COPY --from=build /build/dist ./dist
COPY --from=build /build/package*.json ./

RUN npm ci --only=production --ignore-scripts
RUN npm ci --only=production

CMD ["npm","run","start"]