Skip to content

Commit

Permalink
Revert "use Node.js 20 (current LTS) and Debian 12 in Dockerfile"
Browse files Browse the repository at this point in the history
This reverts commit cec6cce.
  • Loading branch information
striezel committed May 17, 2024
1 parent cec6cce commit ef48dbf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
13 changes: 7 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:12-slim
FROM debian:11-slim
MAINTAINER Dirk Stolle <[email protected]>

LABEL org.opencontainers.image.authors="Dirk Stolle <[email protected]>"
Expand All @@ -7,21 +7,22 @@ LABEL org.opencontainers.image.licenses=GPL-3.0-or-later

# Always update package lists and install updates first.
# HTTPS transport for APT is required to get the Node.js packages.
# curl, GnuPG and CA certificates are needed to get the key for the Nodesource
# wget, GnuPG and CA certificates are needed to get the key for the Nodesource
# APT repository.
# Finally, libfontconfig is required during execution to get font rendering.
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get upgrade -y && \
apt-get install --no-install-recommends -y \
apt-transport-https \
curl \
wget \
gnupg2 \
dirmngr \
ca-certificates \
libfontconfig1
# Node.js is required to run this application.
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" > /etc/apt/sources.list.d/nodejs.list
RUN echo "# Node.js 14.x for Debian 11 (codename bullseye)" > /etc/apt/sources.list.d/nodejs.list \
&& echo "deb https://deb.nodesource.com/node_14.x bullseye main" >> /etc/apt/sources.list.d/nodejs.list \
&& echo "deb-src https://deb.nodesource.com/node_14.x bullseye main" >> /etc/apt/sources.list.d/nodejs.list
RUN apt-key adv --fetch-keys https://deb.nodesource.com/gpgkey/nodesource.gpg.key
RUN apt-get update && apt-get install --no-install-recommends -y nodejs
# Create directory for application.
RUN mkdir -p /opt/export-server
Expand Down
6 changes: 0 additions & 6 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ Since [ECharts](https://echarts.apache.org/) is the main dependency of this
application, major version changes in ECharts will also trigger a major version
change in this application.

## Version 5.?.? (2024-05-??)

* __[maintenance]__
Update Dockerfile to use Debian 12 and Node.js 20 instead of Debian 11 and
Node.js 14.

## Version 5.1.2 (2024-03-31)

* __[maintenance]__
Expand Down

0 comments on commit ef48dbf

Please sign in to comment.