Skip to content

Commit

Permalink
* Use Debian 12 in docker image
Browse files Browse the repository at this point in the history
* Update to PostgreSQL 15
* Update install method for node.js, update to Node 18
  • Loading branch information
flodolo committed Feb 22, 2024
1 parent 9cf8902 commit b7bf8a9
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.10-bullseye AS server
FROM python:3.10-bookworm AS server

ARG USER_ID=1000
ARG GROUP_ID=1000
Expand All @@ -14,17 +14,18 @@ ENV PYTHONPATH /app
# Install required software.
RUN apt-get update \
# Enable downloading packages over https
&& apt-get install -y apt-transport-https \
# Get source for node.js
&& curl -fsSL https://deb.nodesource.com/setup_16.x | bash - \
&& apt-get install -y apt-transport-https ca-certificates curl gnupg; \
# Add source for node.js
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_18.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list; \
# Install software
&& apt-get update \
apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
libmemcached-dev \
nodejs \
postgresql-client \
postgresql-server-dev-13 \
postgresql-server-dev-15 \
# Clean up what can be cleaned up.
&& apt-get autoremove -y

Expand Down

0 comments on commit b7bf8a9

Please sign in to comment.