dev: add -p flag for the logs folder (#4007)

This commit is contained in:
Nikhil 2024-03-20 19:28:19 +05:30 committed by GitHub
parent 4eefc7f692
commit e1f04356fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -48,7 +48,7 @@ USER root
RUN apk --no-cache add "bash~=5.2" RUN apk --no-cache add "bash~=5.2"
COPY ./bin ./bin/ COPY ./bin ./bin/
RUN mkdir /code/plane/logs RUN mkdir -p /code/plane/logs
RUN chmod +x ./bin/takeoff ./bin/worker ./bin/beat RUN chmod +x ./bin/takeoff ./bin/worker ./bin/beat
RUN chmod -R 777 /code RUN chmod -R 777 /code
RUN chown -R captain:plane /code RUN chown -R captain:plane /code

View File

@ -35,6 +35,7 @@ RUN addgroup -S plane && \
COPY . . COPY . .
RUN mkdir -p /code/plane/logs
RUN chown -R captain.plane /code RUN chown -R captain.plane /code
RUN chmod -R +x /code/bin RUN chmod -R +x /code/bin
RUN chmod -R 777 /code RUN chmod -R 777 /code