fix some permission issues
This commit is contained in:
@@ -39,7 +39,7 @@ RUN wget https://github.com/rommapp/romm/archive/refs/tags/$VERSION.tar.gz && \
|
||||
tar xfz $VERSION.tar.gz --strip-components=1 -C /app/code && rm $VERSION.tar.gz
|
||||
|
||||
# Install nvm
|
||||
ENV NVM_DIR="/root/.nvm"
|
||||
ENV NVM_DIR="/app/code/.nvm"
|
||||
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash \
|
||||
&& . "$NVM_DIR/nvm.sh" \
|
||||
&& nvm install 18.20.8 \
|
||||
@@ -56,12 +56,13 @@ RUN sed -i '22a #include <ctime>' ./src/Util.h \
|
||||
./src/libchdr/deps/zlib-1.3.1/gzread.c \
|
||||
./src/libchdr/deps/zlib-1.3.1/gzwrite.c \
|
||||
&& make HAVE_CHD=1 -f ./Makefile.RAHasher \
|
||||
&& cp ./bin64/RAHasher /usr/bin/RAHasher
|
||||
&& cp ./bin64/RAHasher /app/code/.bin/RAHasher
|
||||
RUN rm -rf /tmp/RALibretro
|
||||
|
||||
# Install frontend dependencies
|
||||
WORKDIR /app/code/frontend
|
||||
RUN npm install
|
||||
RUN ln -s /tmp/vite-temp /app/code/frontend/node_modules/.vite-temp
|
||||
|
||||
WORKDIR /app/code/
|
||||
# Install uv for the non-root user
|
||||
@@ -77,7 +78,7 @@ RUN uv sync --all-extras
|
||||
ADD supervisor/* /etc/supervisor/conf.d/
|
||||
RUN ln -sf /run/supervisord.log /var/log/supervisor/supervisord.log
|
||||
|
||||
ENV PATH="/app/code/.venv/bin:${PATH}"
|
||||
ENV PATH="/app/code/.venv/bin:/app/code/.bin:${PATH}"
|
||||
|
||||
COPY start.sh /app/pkg/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user