Using Alpine variant for Docker

This commit is contained in:
Pablo Ferreiro
2022-06-28 20:35:11 +02:00
parent eaa76f0dd9
commit dd6a72eace
9 changed files with 91 additions and 78 deletions

View File

@@ -1,9 +1,12 @@
FROM node:17
FROM node:18-alpine
WORKDIR /usr/src/app
COPY package.json ./
# Setup Alpine for building "canvas" package
RUN apk add --no-cache python3 make g++ pkgconfig cairo-dev pango-dev
COPY package.json yarn.lock ./
RUN yarn install
COPY . .
EXPOSE 8080
CMD [ "node", "api/index.js" ]