#1616 Recovery script in Docker container (#1726)

This commit is contained in:
Manuel
2023-12-04 13:06:14 +01:00
committed by GitHub
parent cca8be09cb
commit fc38f7ab29
7 changed files with 1531 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ COPY ./drizzle ./drizzle
COPY ./drizzle/migrate ./migrate
COPY ./tsconfig.json ./migrate/tsconfig.json
COPY ./cli ./cli
RUN mkdir /data
@@ -43,6 +44,10 @@ RUN mv node_modules ./migrate/node_modules
# Copy temp node_modules of app to app folder
RUN mv _node_modules node_modules
RUN echo '#!/bin/bash\nnode /app/cli/cli.js "$@"' > /usr/bin/homarr
RUN chmod +x /usr/bin/homarr
RUN cd /app/cli && yarn --immutable
# Expose the default application port
EXPOSE $PORT
ENV PORT=${PORT}