Skip to content

Commit

Permalink
chore:use alpine as base image
Browse files Browse the repository at this point in the history
  • Loading branch information
CielNeko committed Mar 16, 2024
1 parent 9690ed4 commit 408b579
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
FROM archlinux:latest
FROM node:16-alpine

WORKDIR /app
ADD . /app

RUN \
pacman -Syu --noconfirm --needed --noprogressbar --noconfirm nodejs npm base-devel openssl-1.1 && \
cd /app && \
npm install && \
pacman -Rsc --noconfirm base-devel npm && \
rm -rf /var/cache /var/lib/pacman/sync/* /root/.npm /root/.cache /root/.node_repl_history
RUN apk add python3 build-base
RUN npm install

CMD [ "index.js" ]

0 comments on commit 408b579

Please sign in to comment.