RaythaHQ / raytha

Raytha is a powerful CMS with an easy-to-use interface and fast performance. It offers custom content types, a template engine, and various access controls. It supports multiple storage providers and an automatically generated REST API. Upgrade your development workflow with Raytha.
MIT License
154 stars 30 forks source link

Update deprecated Dockerfile commands #158

Closed apexdodge closed 9 months ago

apexdodge commented 9 months ago

These commands in the current Dockerfile for node installation are deprecated and a large warning appears when docker is building the image.

https://github.com/RaythaHQ/raytha/blob/5e8af6111fa4c385573c024710fb2bcb98772b35/Dockerfile#L6

Should be replaced with:

RUN apt update
RUN apt install -y curl ca-certificates curl gnupg
RUN mkdir -p /etc/apt/keyrings
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
RUN apt update
RUN apt install -y nodejs
apexdodge commented 9 months ago

Will be released with v1.1.4.

Thank you