Migrations the right way
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user