Skip to content

Commit 3a0de7b

Browse files
authored
Merge pull request #334 from italia/test
Test
2 parents 653d65f + fa357c0 commit 3a0de7b

File tree

1 file changed

+17
-20
lines changed

1 file changed

+17
-20
lines changed

Dockerfile

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,6 @@ RUN apt-get update && apt-get install -y \
3737
python3-virtualenv \
3838
build-essential
3939

40-
# Install NVM
41-
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh > install.sh
42-
RUN chmod +x ./install.sh && \
43-
./install.sh && \
44-
export NVM_DIR="$HOME/.nvm" && \
45-
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \
46-
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" && \
47-
nvm install 22 && \
48-
node -v && \
49-
npm -v
50-
5140
# Install spid-sp-test
5241
RUN pip install spid-sp-test==1.2.17 --upgrade --no-cache
5342

@@ -58,20 +47,28 @@ WORKDIR /spid-saml-check
5847
ADD . /spid-saml-check
5948

6049
# Create directory for tests data
61-
RUN mkdir /spid-saml-check/data
50+
RUN mkdir /spid-saml-check/src/data
51+
52+
# Install NVM
53+
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh > install.sh
54+
RUN chmod +x ./install.sh && \
55+
./install.sh && \
56+
export NVM_DIR="$HOME/.nvm" && \
57+
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \
58+
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" && \
59+
nvm install 22 && \
60+
node -v && \
61+
npm -v && \
62+
cd /spid-saml-check/src && \
63+
cp -R config-sample config && \
64+
cd client && npm install --silent && npm run build && cd .. && \
65+
cd server && npm install --silent && cd ..
6266

6367
ENV TZ=Europe/Rome
6468
ENV NODE_HTTPS_PORT=${EXPOSE_HTTPS_PORT}
6569

66-
# Build validator
67-
RUN cd /spid-saml-check/src && \
68-
cp -R config-sample config && \
69-
cd client && npm install --silent && cd .. && \
70-
cd server && npm install --silent && cd .. && \
71-
npm run build
72-
7370
# Ports exposed
7471
EXPOSE ${EXPOSE_HTTPS_PORT}
7572

7673

77-
ENTRYPOINT cd src && npm run start-prod
74+
ENTRYPOINT cd src && node server/spid-saml-check.js

0 commit comments

Comments
 (0)