This repository has been archived by the owner on Aug 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b7c4697
commit 895e33d
Showing
4 changed files
with
206 additions
and
270 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,12 +1,23 @@ | ||
FROM node:18-alpine | ||
FROM node:20-alpine | ||
WORKDIR /usr/src/app | ||
|
||
# Setup Alpine for building "canvas" package | ||
RUN apk add --no-cache python3 make g++ pkgconfig cairo-dev pango-dev | ||
# Setup Alpine for canvas | ||
RUN apk add --no-cache \ | ||
# Build only | ||
python3 g++ make cairo-dev pango-dev \ | ||
# Runtime | ||
cairo pango | ||
|
||
# Install deps | ||
COPY package.json yarn.lock ./ | ||
RUN yarn install | ||
COPY . . | ||
|
||
# Copy required files for server | ||
COPY ./src ./src | ||
COPY ./api ./api | ||
COPY ./js ./js | ||
|
||
RUN apk del python3 g++ make cairo-dev pango-dev | ||
|
||
EXPOSE 8080 | ||
CMD [ "node", "api/index.js" ] |
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
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
Oops, something went wrong.