-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.tasks-build
34 lines (29 loc) · 1.19 KB
/
Dockerfile.tasks-build
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
32
33
34
#FROM --platform=$TARGETPLATFORM node:18-bullseye AS tasks-builder
#COPY tasks /srv/tasks
#COPY api /srv/api
#COPY configuration /srv/configuration
#WORKDIR /srv/tasks
#RUN npm install
#RUN npm run build:production
#FROM node:18-bullseye-slim
#WORKDIR /srv
#RUN apt-get update && apt-get install -y ca-certificates
#COPY --from=tasks-builder /srv/tasks/package.json /srv/package.json
#COPY --from=tasks-builder /srv/tasks/package-lock.json /srv/package-lock.json
#COPY tasks/unstick-queues.js /srv/unstick-queues.js
#RUN npm install
#COPY --from=tasks-builder /srv/tasks/dist/ /srv/
# COPY tasks/src/xslt /srv/tasks/src/xslt
#CMD [ "node", "./server.bundle.cjs" ]
FROM node:18-bullseye-slim
LABEL org.opencontainers.image.source=https://github.com/CoEDL/nyingarn-workspace
LABEL org.opencontainers.image.description="The Nyingarn Workspace Tasks container"
LABEL org.opencontainers.image.licenses=GPLv3
RUN apt-get update && apt-get install -y postgresql-client ca-certificates
COPY tasks /srv/tasks
COPY api /srv/api
WORKDIR /srv/api
RUN npm install --arch=x64 --platform=linux --libc=glibc sharp
WORKDIR /srv/tasks
RUN npm install --arch=x64 --platform=linux --libc=glibc sharp
CMD [ "node", "/srv/tasks/index.js" ]