Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +6 -4
Dockerfile
CHANGED
|
@@ -14,6 +14,7 @@
|
|
| 14 |
|
| 15 |
# CMD ["npm", "start"]
|
| 16 |
# Use the Node.js 20 alpine image as the base image
|
|
|
|
| 17 |
FROM node:20-alpine3.16
|
| 18 |
|
| 19 |
# Set the working directory
|
|
@@ -36,14 +37,15 @@ RUN apk add --no-cache \
|
|
| 36 |
pango-dev \
|
| 37 |
cairo-dev \
|
| 38 |
imagemagick \
|
| 39 |
-
libssl1.1
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
# Install npm dependencies
|
| 42 |
RUN npm install
|
| 43 |
|
| 44 |
-
# Install additional dependencies for building and rendering images
|
| 45 |
-
RUN apk add --no-cache gcc libcairo libpango libjpeg libgif librsvg
|
| 46 |
-
|
| 47 |
# Link the resolver library
|
| 48 |
RUN ln -s /lib/libresolv.so.2 /usr/lib/libresolv.so.2
|
| 49 |
|
|
|
|
| 14 |
|
| 15 |
# CMD ["npm", "start"]
|
| 16 |
# Use the Node.js 20 alpine image as the base image
|
| 17 |
+
# Use the Node.js 20 alpine image as the base image
|
| 18 |
FROM node:20-alpine3.16
|
| 19 |
|
| 20 |
# Set the working directory
|
|
|
|
| 37 |
pango-dev \
|
| 38 |
cairo-dev \
|
| 39 |
imagemagick \
|
| 40 |
+
libssl1.1 \
|
| 41 |
+
giflib-dev \
|
| 42 |
+
librsvg-dev \
|
| 43 |
+
cairo \
|
| 44 |
+
pango
|
| 45 |
|
| 46 |
# Install npm dependencies
|
| 47 |
RUN npm install
|
| 48 |
|
|
|
|
|
|
|
|
|
|
| 49 |
# Link the resolver library
|
| 50 |
RUN ln -s /lib/libresolv.so.2 /usr/lib/libresolv.so.2
|
| 51 |
|