mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
19 lines
417 B
Smarty
19 lines
417 B
Smarty
FROM node:18.13.0-alpine
|
|
USER root
|
|
RUN mkdir /tmp/npm && chmod 2777 /tmp/npm && chown 1000:1000 /tmp/npm && npm config set cache /tmp/npm --global
|
|
|
|
RUN npm config set fetch-retry-maxtimeout 6000000
|
|
RUN npm config set fetch-retry-mintimeout 1000000
|
|
|
|
ARG GIT_SHA
|
|
ARG APP_VERSION
|
|
|
|
ENV GIT_SHA=${GIT_SHA}
|
|
ENV APP_VERSION=${APP_VERSION}
|
|
|
|
RUN npm -g config set user root
|
|
RUN apk add bash
|
|
|
|
COPY ./Tests .
|
|
|
|
CMD ["/start.sh"] |