Skip to content

Commit

Permalink
fixup docker
Browse files Browse the repository at this point in the history
  • Loading branch information
theosanderson committed Oct 14, 2024
1 parent 5fdadb9 commit 0058085
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 6,058 deletions.
9 changes: 5 additions & 4 deletions Dockerfile.frontend
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
FROM node:18-alpine AS builder
ENV NODE_ENV production
# Add a work directory
WORKDIR /app
COPY taxonium_website ./taxonium_website
COPY taxonium_data_handling ./taxonium_data_handling
COPY taxonium_component ./taxonium_component
WORKDIR /app/taxonium_website



# Install dependencies for node-gyp from lzma-native
RUN apk add --no-cache python3 make g++ jpeg-dev cairo-dev giflib-dev pango-dev
RUN npm_config_build_from_source=true yarn add canvas
RUN yarn --frozen-lockfile
RUN yarn build
RUN NODE_OPTIONS=--max_old_space_size=4096 yarn --frozen-lockfile
# Build the app with lots of memory
RUN NODE_OPTIONS=--max_old_space_size=8096 yarn build

# Bundle static assets with nginx
FROM nginx:1.21.0-alpine as production
Expand Down
Loading

0 comments on commit 0058085

Please sign in to comment.