forked from LyoSU/quote-api
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
42 lines (35 loc) · 755 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Use the Node.js 20 alpine image as the base image
FROM node:20-alpine3.16
# Set the working directory
WORKDIR /app
# Copy the application files to the container
ADD . /app
# Install necessary packages
RUN apk add --no-cache \
font-noto \
font-noto-cjk \
font-noto-extra \
gcompat \
libstdc++ \
libuuid \
vips-dev \
build-base \
jpeg-dev \
pango-dev \
cairo-dev \
imagemagick \
libssl1.1 \
giflib-dev \
librsvg-dev \
cairo \
pango \
fontconfig \
ttf-freefont
# Install npm dependencies
RUN npm install
# Link the resolver library
RUN ln -s /lib/libresolv.so.2 /usr/lib/libresolv.so.2
# Expose the application port
EXPOSE 7860
# Start the application
CMD ["npm", "start"]