fix(docker): change to docker alpine
This commit is contained in:
+3
-3
@@ -1,10 +1,10 @@
|
||||
FROM node:18 AS builder
|
||||
FROM node:18.20.4-alpine AS builder
|
||||
WORKDIR /spooty
|
||||
COPY . .
|
||||
RUN npm ci
|
||||
RUN npm run build
|
||||
|
||||
FROM node:18
|
||||
FROM node:18.20.4-alpine
|
||||
WORKDIR /spooty
|
||||
COPY --from=builder /spooty/dist .
|
||||
COPY --from=builder /spooty/src ./src
|
||||
@@ -13,7 +13,7 @@ COPY --from=builder /spooty/package-lock.json ./package-lock.json
|
||||
COPY --from=builder /spooty/src/backend/.env.default ./.env
|
||||
RUN rm -rf node_modules
|
||||
RUN npm ci --omit=dev
|
||||
RUN apt-get -y update && apt-get -y upgrade && apt-get install -y --no-install-recommends ffmpeg
|
||||
RUN rm -rf src package.json package-lock.json
|
||||
RUN apk add --no-cache ffmpeg
|
||||
EXPOSE 3000
|
||||
CMD ["node", "backend/main.js"]
|
||||
Reference in New Issue
Block a user