2023-04-08 13:08:37 +00:00
|
|
|
FROM debian:bullseye-slim
|
|
|
|
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
|
|
|
# NodeJs
|
|
|
|
|
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y --no-install-recommends \
|
|
|
|
curl \
|
|
|
|
ca-certificates \
|
|
|
|
gnupg2 \
|
2023-04-11 06:38:35 +00:00
|
|
|
git \
|
2023-04-10 12:11:36 +00:00
|
|
|
&& curl -fsSL https://deb.nodesource.com/setup_14.x | bash - \
|
2023-04-11 10:14:55 +00:00
|
|
|
&& apt-get install -y --no-install-recommends nodejs \
|
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
2023-04-11 14:17:26 +00:00
|
|
|
&& npm i -g npm@9.6.4
|
2023-04-08 13:08:37 +00:00
|
|
|
|
2023-04-10 12:11:36 +00:00
|
|
|
# MyLogger
|
2023-04-08 13:08:37 +00:00
|
|
|
|
2023-04-10 12:11:36 +00:00
|
|
|
WORKDIR /mylogger
|
2023-04-11 18:26:17 +00:00
|
|
|
COPY package.json package-lock.json ./
|
2023-04-11 12:09:04 +00:00
|
|
|
RUN npm install --omit=dev \
|
2023-04-11 12:07:17 +00:00
|
|
|
&& git clone --depth 1 --branch fix-143 https://github.com/juan-ferrer-toribio/zongji.git \
|
2023-04-11 12:09:04 +00:00
|
|
|
&& (cd zongji && npm install --omit=dev)
|
2023-04-08 13:08:37 +00:00
|
|
|
|
|
|
|
ARG BUILD_ID=unknown
|
|
|
|
ARG VERSION
|
|
|
|
ENV VERSION $VERSION
|
|
|
|
RUN echo $VERSION
|
|
|
|
|
2023-06-02 10:56:36 +00:00
|
|
|
COPY lib lib
|
2023-05-30 18:09:05 +00:00
|
|
|
COPY config config
|
2023-04-08 13:08:37 +00:00
|
|
|
COPY \
|
|
|
|
LICENSE \
|
|
|
|
README.md \
|
|
|
|
mylogger.js \
|
|
|
|
index.js \
|
|
|
|
./
|
|
|
|
|
2023-04-11 18:22:45 +00:00
|
|
|
ENV TZ Europe/Madrid
|
2023-04-10 12:11:36 +00:00
|
|
|
CMD ["node", "index.js"]
|