mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-12-03 23:14:08 +03:00
12e9dc753c
Clearning the ENTRYPOINT also clears the CMD. We need to set explicitly CMD again.
14 lines
451 B
Docker
14 lines
451 B
Docker
FROM docker.io/amazon/aws-cli:2.17.0
|
|
|
|
# Clear entrypoint from the base image, otherwise it's always calling the aws CLI
|
|
ENTRYPOINT []
|
|
CMD ["/bin/bash"]
|
|
|
|
COPY ./compose/production/aws/maintenance /usr/local/bin/maintenance
|
|
COPY ./compose/production/postgres/maintenance/_sourced /usr/local/bin/maintenance/_sourced
|
|
|
|
RUN chmod +x /usr/local/bin/maintenance/*
|
|
|
|
RUN mv /usr/local/bin/maintenance/* /usr/local/bin \
|
|
&& rmdir /usr/local/bin/maintenance
|