Skip to content

Commit

Permalink
fix -- docker chmod to octal
Browse files Browse the repository at this point in the history
  • Loading branch information
austinorr committed Sep 29, 2024
1 parent 3d42345 commit b7bfcf9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions nereid/Dockerfile.multi
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,14 @@ RUN addgroup --gid 1000 ${IMG_USER} \
&& adduser --no-create-home --system --disabled-password --uid 1000 --gid 1000 ${IMG_USER}
USER ${IMG_USER}
COPY --from=core-env --chown=${IMG_USER} /opt/venv /opt/venv
COPY --chmod=+x ./scripts /
COPY --chmod=755 ./scripts /
COPY --chown=${IMG_USER}:${IMG_USER} ./nereid /nereid/nereid
CMD ["bash", "/run-worker.sh"]


FROM core-runtime AS nereid
COPY --from=server-env /opt/venv /opt/venv
COPY --chmod=+x ./scripts /
COPY --chmod=755 ./scripts /
COPY ./nereid /nereid/nereid
COPY --from=frontend /app/dist /nereid/nereid/static/frontend/dist
COPY gunicorn_conf.py /gunicorn_conf.py
Expand All @@ -105,7 +105,7 @@ FROM core-runtime AS nereid-tests
COPY --from=test-env /opt/venv /opt/venv
COPY .coveragerc /nereid/.coveragerc
COPY conftest.py /nereid/conftest.py
COPY --chmod=+x ./scripts /
COPY --chmod=755 ./scripts /
## This will make the container wait, doing nothing, but alive
CMD ["bash", "-c", "while true; do sleep 1; done"]

Expand All @@ -122,8 +122,7 @@ RUN uv venv /opt/venv && \
uv pip install --no-cache -r /requirements_dev_unpinned.txt
COPY ./nereid /nereid/nereid
COPY --from=frontend /app/dist /nereid/nereid/static/frontend/dist
COPY ./scripts /
RUN chmod +x /start.sh /start-reload.sh /prestart.sh /prestart-worker.sh /run-worker.sh
COPY --chmod=755 ./scripts /
WORKDIR /nereid
ENV PYTHONPATH=/nereid

Expand Down

0 comments on commit b7bfcf9

Please sign in to comment.