Skip to content

Commit

Permalink
docker: use archlinux as base image (#3)
Browse files Browse the repository at this point in the history
* docker: use archlinux as base image

* oops
  • Loading branch information
chitang233 authored Feb 14, 2024
1 parent 2b07d48 commit f2a8af7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Dockerfile
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/*
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ services:
options:
max-size: "10m"
max-file: "3"
volumes:
- ./fonts:/usr/share/fonts
networks:
- quotly
command: node index.js
Expand Down

0 comments on commit f2a8af7

Please sign in to comment.