Skip to content

Commit

Permalink
fix: adiciona entrypoint
Browse files Browse the repository at this point in the history
Garante criação da pasta temp e sua permissão de escrita
  • Loading branch information
caduvieira committed May 15, 2024
1 parent 467edaa commit 8a7d57f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ RUN mkdir -p /var/log/sei && mkdir -p /var/log/sip
# Suporte para atualização do SEI. O script de atualização do SEI está fixo no bash
RUN apk add --no-cache \
bash curl;

COPY assets/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh

EXPOSE 80
CMD ["sh", "-c", "crond && httpd -DFOREGROUND"]
EXPOSE 8000
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/bin/sh", "-c", "crond && httpd -DFOREGROUND"]
8 changes: 8 additions & 0 deletions assets/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

mkdir -p /opt/sei/temp
mkdir -p /opt/sip/temp
chmod 777 /opt/sei/temp
chmod 777 /opt/sip/temp

exec "$@"

0 comments on commit 8a7d57f

Please sign in to comment.