Added migrations

This commit is contained in:
PB
2022-12-17 06:31:35 +01:00
parent 78418b230d
commit 0a684d45f9
9 changed files with 280 additions and 37 deletions

View File

@@ -19,11 +19,12 @@ LABEL dev.egommerce.image.build_time=${BUILD_TIME}
WORKDIR /
COPY --from=builder $BIN_OUTPUT /app
COPY --from=builder /go/bin/migrate /bin/go_migrate
COPY .env.dist /.env
COPY ./bin/entrypoint.sh ./bin/wait-for-it.sh /
RUN chmod 755 /entrypoint.sh
COPY ./bin /bin
RUN chmod 755 /bin/entrypoint.sh /bin/migrate.sh
EXPOSE 80
CMD ["sh", "-c", "/app"]
ENTRYPOINT ["/entrypoint.sh"]
ENTRYPOINT ["entrypoint.sh"]