fix(docker): CRLF в entrypoint на Windows; .gitattributes для *.sh; README

Made-with: Cursor
This commit is contained in:
Константин Лебединский
2026-04-01 22:10:18 +05:00
parent fe99f8dc72
commit d8805bd4ed
3 changed files with 19 additions and 1 deletions
+4 -1
View File
@@ -23,7 +23,10 @@ COPY --from=backend-build /app/backend/prisma ./prisma
COPY --from=backend-build /app/backend/package.json ./package.json
COPY --from=frontend-build /app/frontend/dist ./public
COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh
# Убрать CRLF после checkout на Windows (иначе: exec /docker-entrypoint.sh: no such file or directory)
RUN tr -d '\r' < /docker-entrypoint.sh > /tmp/docker-entrypoint.sh && \
mv /tmp/docker-entrypoint.sh /docker-entrypoint.sh && \
chmod +x /docker-entrypoint.sh
EXPOSE 3107
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["node", "dist/index.js"]