Migrations the right way

This commit is contained in:
PB
2025-11-08 17:54:22 +01:00
parent bceaa010ab
commit fc6970adc2
9 changed files with 88 additions and 266 deletions

View File

@@ -18,16 +18,16 @@ LABEL dev.egommerce.image.build_time=${BUILD_TIME}
WORKDIR /
COPY --from=builder /go/bin/server /usr/local/bin/server
COPY --from=builder /go/bin/migrate /usr/local/bin/migrate
COPY --from=builder /go/bin/scheduler /usr/local/bin/scheduler
COPY --from=builder /go/bin/server /usr/local/bin/server
COPY deploy/.env.docker /.env
COPY ./bin/* /usr/local/bin/
RUN chmod 755 /usr/local/bin/entrypoint.sh /usr/local/bin/migrate.sh
RUN chmod 755 /usr/local/bin/entrypoint /usr/local/bin/migrate
EXPOSE 443
ENTRYPOINT ["entrypoint.sh"]
ENTRYPOINT ["entrypoint"]
CMD ["sh", "-c", "/usr/local/bin/server"]