Skip to content

Commit

Permalink
Merge pull request #984 from jectpro7/master
Browse files Browse the repository at this point in the history
Fix docker compilation failed
  • Loading branch information
troyeguo committed Nov 4, 2023
2 parents c3152ad + ad5122d commit ebdff0e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM node:14-slim as builder
RUN apt-get update && apt-get install -y jq curl wget python
FROM node:18-slim as builder
RUN apt-get update && apt-get install -y jq curl wget python3
WORKDIR /app

### Get the latest release source code tarball
Expand All @@ -13,7 +13,8 @@ RUN yarn --network-timeout 1000000

### Separate `yarn build` layer as a workaround for devices with low RAM.
### If build fails due to OOM, `yarn install` layer will be already cached.
RUN yarn build
RUN yarn \
&& yarn build

### Nginx or Apache can also be used, Caddy is just smaller in size
FROM caddy:latest
Expand Down

0 comments on commit ebdff0e

Please sign in to comment.