-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
31 lines (22 loc) · 668 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM node:20-alpine AS builder
# Install global NPM tooling
RUN npm install [email protected] -g
# Copy the application
RUN mkdir -p /opt/iiif-server
COPY . /opt/iiif-server
WORKDIR /opt/iiif-server
# Install the application
RUN npm install --omit=dev
# Transpile the application
RUN tsc
# Create the actual image
FROM node:20-alpine
# Install tooling
RUN apk add --no-cache ghostscript ffmpeg
# Copy audiowaveform
COPY --from=realies/audiowaveform /usr/local/bin/audiowaveform /usr/local/bin/
# Copy application build from builder
COPY --from=builder /opt/iiif-server /opt/iiif-server
WORKDIR /opt/iiif-server
# Run the application
CMD ["node", "src/app.js"]