forked from LyoSU/quote-bot
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docker: use archlinux as base image (#3)
* docker: use archlinux as base image * oops
- Loading branch information
1 parent
2b07d48
commit f2a8af7
Showing
2 changed files
with
11 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
FROM nikolaik/python-nodejs:python3.12-nodejs21-bullseye AS builder | ||
FROM archlinux:latest | ||
|
||
ENV NODE_WORKDIR /app | ||
WORKDIR $NODE_WORKDIR | ||
WORKDIR /app | ||
ADD . /app | ||
|
||
ADD . $NODE_WORKDIR | ||
|
||
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - | ||
RUN apt-get update && apt-get install -y build-essential gcc wget git libvips libssl1.1 && rm -rf /var/lib/apt/lists/* | ||
|
||
RUN npm install | ||
RUN \ | ||
pacman -Syu --noconfirm --needed --noprogressbar --noconfirm nodejs npm base-devel openssl-1.1 && \ | ||
cd /app && \ | ||
npm install && \ | ||
pacman -Rsc --noconfirm base-devel && \ | ||
rm -rf /var/cache /var/lib/pacman/sync/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters