Skip to content

Commit

Permalink
Make sure that .next and .next/trace is writable
Browse files Browse the repository at this point in the history
Had problems deploying because the node process coul not write into
.next/trace. Probably when activatting sourcemaps serverside.
It is not pretty but this makes sure that it is possible.
  • Loading branch information
spaceo committed Nov 21, 2024
1 parent 90e405e commit a36b3f0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lagoon/node.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,11 @@ COPY . /app/

EXPOSE 3000

CMD ["/app/lagoon/start.sh"]
# Desperate I know.
# This was introduced after continuously getting an error
# about the .next/trace directory not being writable.
# TODO: We should investigate how to set proper user/group permissions
RUN mkdir -p /app/.next/trace
RUN chmod -R 777 /app/.next

CMD ["/app/lagoon/start.sh"]

0 comments on commit a36b3f0

Please sign in to comment.