Skip to content

Commit

Permalink
update Dockerfile for canvas
Browse files Browse the repository at this point in the history
  • Loading branch information
TaiSakuma committed Sep 8, 2023
1 parent 31b5de2 commit a2a2698
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,19 @@ RUN apk --no-cache --virtual build-dependencies add \
make \
g++

# For "canvas": https://stackoverflow.com/a/66692565/7309855
# canvas is onlye used in unit testing with monaco-editor.
# It should be possible to write pacakge.json to avoid installing canvas in production.
# But, I don't know how to do it.
RUN apk add --update --no-cache \
jpeg-dev \
cairo-dev \
giflib-dev \
pango-dev \
libtool \
autoconf \
automake

RUN yarn
COPY docker/env.local .env.local
RUN yarn build
Expand Down

0 comments on commit a2a2698

Please sign in to comment.