Skip to content

Node.js based forum software built for the modern web

test: on more corepack test

Barış Soner Uşaklıb121082f812d
diff --git a/Dockerfile b/Dockerfile
index b9b86e481c..bfd499f9db 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -12,8 +12,8 @@ WORKDIR /usr/src/app/
COPY . /usr/src/app/
# Install corepack to allow usage of other package managers
-RUN npm install -g corepack
-RUN corepack enable
+# RUN npm install -g corepack
+# RUN corepack enable
# Removing unnecessary files for us
RUN find . -mindepth 1 -maxdepth 1 -name '.*' ! -name '.' ! -name '..' -exec bash -c 'echo "Deleting {}"; rm -rf {}' \;
@@ -48,7 +48,8 @@ ENV NODE_ENV=production \
WORKDIR /usr/src/app/
-RUN corepack enable \
+RUN npm install --global corepack \
+ && corepack enable \
&& groupadd --gid ${GID} ${USER} \
&& useradd --uid ${UID} --gid ${GID} --home-dir /usr/src/app/ --shell /bin/bash ${USER} \
&& mkdir -p /usr/src/app/logs/ /opt/config/ \