-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (22 loc) · 797 Bytes
/
Copy pathDockerfile
File metadata and controls
31 lines (22 loc) · 797 Bytes
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
FROM node:22-bookworm-slim
LABEL maintainer="tphung001@dundee.ac.uk"
ARG BUILD_DATE
ARG API_HOST=https://celsus.muttsu.xyz/
ARG ORCID_APPID=APP-5RXLC3W1MS2MOW0F
LABEL build-date=$BUILD_DATE
WORKDIR /app
RUN apt-get -y update
RUN apt-get -y upgrade
RUN apt-get -y install git
RUN apt-get -y install nginx
RUN git clone https://github.com/noatgnu/curtain.git
WORKDIR /app/curtain
RUN sed -i -r "s|https://celsus.muttsu.xyz/|${API_HOST}|" ./src/environments/environment.prod.ts
RUN sed -i -r "s|APP-5RXLC3W1MS2MOW0F|${ORCID_APPID}|" ./src/environments/environment.prod.ts
#RUN npm -g config set user root
RUN npm install --quiet --no-progress -g @angular/cli@22
RUN npm install
RUN node_modules/.bin/ng build
FROM nginx:latest
COPY --from=0 /app/curtain/dist /usr/share/nginx/html
EXPOSE 80