Skip to content

Commit

Permalink
use debian base
Browse files Browse the repository at this point in the history
  • Loading branch information
ender-null committed May 7, 2024
1 parent 4129137 commit 455dd33
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM ghcr.io/ender-null/polaris-base:latest as builder
FROM debian:latest as builder

RUN npm install yarn@latest -g --force

RUN mkdir -p /usr/src/app

Expand All @@ -13,7 +15,7 @@ COPY . .

RUN yarn run build

FROM ghcr.io/ender-null/polaris-base:latest as release
FROM debian:latest as release

LABEL org.opencontainers.image.source https://github.com/ender-null/polaris

Expand All @@ -23,4 +25,11 @@ COPY --from=builder /usr/src/app/node_modules ./node_modules
COPY --from=builder /usr/src/app/build ./build
COPY --from=builder /usr/src/app/package.json ./

RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y ffmpeg opus-tools cron
RUN npm install yarn@latest -g --force
RUN crontab -l -u root | echo "*/15 * * * * find /tmp -type f -delete" | crontab -u root -
ENV TZ=Europe/Madrid

CMD ["yarn", "start"]

0 comments on commit 455dd33

Please sign in to comment.