cookiecutter-django/{{cookiecutter.project_slug}}/compose/production/aws/Dockerfile

14 lines
451 B
Docker
Raw Normal View History

2024-11-20 11:50:57 +03:00
FROM docker.io/amazon/aws-cli:2.22.1
# 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