Commits
Tim Donohue authored and GitHub committed 02e1e28ed20 Merge
1 1 | # This image will be published as dspace/dspace-angular:$DSPACE_VERSION-dist |
2 2 | # See https://github.com/DSpace/dspace-angular/tree/main/docker for usage details |
3 3 | |
4 4 | # Test build: |
5 5 | # docker build -f Dockerfile.dist -t dspace/dspace-angular:latest-dist . |
6 6 | |
7 - | FROM node:18-alpine as build |
7 + | FROM node:18-alpine AS build |
8 8 | |
9 9 | # Ensure Python and other build tools are available |
10 10 | # These are needed to install some node modules, especially on linux/arm64 |
11 11 | RUN apk add --update python3 make g++ && rm -rf /var/cache/apk/* |
12 12 | |
13 13 | WORKDIR /app |
14 14 | COPY package.json yarn.lock ./ |
15 15 | RUN yarn install --network-timeout 300000 |
16 16 | |
17 17 | ADD . /app/ |