mirror of
https://github.com/xwiki-labs/cryptpad-docker.git
synced 2024-11-23 14:35:04 +00:00
Upgrade baseimage from buster to bullseye
Signed-off-by: Adrian Nöthlich <git@promasu.tech>
This commit is contained in:
parent
f86b39c28f
commit
fdd0f5c47c
2 changed files with 4 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
||||||
# Multistage build to reduce image size and increase security
|
# Multistage build to reduce image size and increase security
|
||||||
FROM node:16-buster-slim AS build
|
FROM node:16-bullseye-slim AS build
|
||||||
|
|
||||||
# Install requirements to clone repository and install deps
|
# Install requirements to clone repository and install deps
|
||||||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq git
|
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq git
|
||||||
|
@ -21,7 +21,7 @@ RUN npm install --production \
|
||||||
&& bower install --allow-root
|
&& bower install --allow-root
|
||||||
|
|
||||||
# Create actual cryptpad image
|
# Create actual cryptpad image
|
||||||
FROM node:16-buster-slim
|
FROM node:16-bullseye-slim
|
||||||
|
|
||||||
# Create user and group for cryptpad so it does not run as root
|
# Create user and group for cryptpad so it does not run as root
|
||||||
RUN groupadd cryptpad -g 4001
|
RUN groupadd cryptpad -g 4001
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Multistage build to reduce image size and increase security
|
# Multistage build to reduce image size and increase security
|
||||||
|
|
||||||
FROM node:16-buster-slim AS build
|
FROM node:16-bullseye-slim AS build
|
||||||
|
|
||||||
# Install requirements to clone repository and install deps
|
# Install requirements to clone repository and install deps
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
|
@ -18,7 +18,7 @@ RUN npm install --production \
|
||||||
&& bower install --allow-root
|
&& bower install --allow-root
|
||||||
|
|
||||||
# Create actual cryptpad image
|
# Create actual cryptpad image
|
||||||
FROM node:16-buster-slim
|
FROM node:16-bullseye-slim
|
||||||
|
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
# Create users and groups for cryptpad
|
# Create users and groups for cryptpad
|
||||||
|
|
Loading…
Reference in a new issue