2024-05-09 21:10:47 +00:00
|
|
|
FROM node:21.7.3-alpine3.18
|
2023-09-28 11:16:50 +00:00
|
|
|
RUN mkdir /tmp/npm && chmod 2777 /tmp/npm && chown 1000:1000 /tmp/npm && npm config set cache /tmp/npm --global
|
|
|
|
|
2023-09-29 12:59:08 +00:00
|
|
|
# Install bash.
|
|
|
|
RUN apk add bash && apk add curl
|
|
|
|
|
2023-09-28 11:16:50 +00:00
|
|
|
|
|
|
|
ARG GIT_SHA
|
|
|
|
ARG APP_VERSION
|
|
|
|
|
|
|
|
ENV GIT_SHA=${GIT_SHA}
|
|
|
|
ENV APP_VERSION=${APP_VERSION}
|
|
|
|
|
2024-04-09 11:53:13 +00:00
|
|
|
|
|
|
|
# IF APP_VERSION is not set, set it to 1.0.0
|
2024-04-09 11:53:42 +00:00
|
|
|
RUN if [ -z "$APP_VERSION" ]; then export APP_VERSION=1.0.0; fi
|
2024-04-09 11:53:13 +00:00
|
|
|
|
2023-09-28 11:16:50 +00:00
|
|
|
RUN apk add bash
|
|
|
|
|
|
|
|
COPY ./Tests .
|
|
|
|
|
2023-09-29 12:52:56 +00:00
|
|
|
RUN chmod -R +x Scripts
|
|
|
|
|
2023-09-28 20:27:11 +00:00
|
|
|
CMD ["bash start.sh"]
|