Skip to content

Instantly share code, notes, and snippets.

@tghastings
Last active July 16, 2018 00:37
Show Gist options
  • Save tghastings/8f24d0baf4cbb30835904ff2d6afb460 to your computer and use it in GitHub Desktop.
Save tghastings/8f24d0baf4cbb30835904ff2d6afb460 to your computer and use it in GitHub Desktop.
Dockerfile Cloud9 Django
FROM bizcapdev/base-python-alpine-django
RUN apk --update add build-base g++ make curl wget openssl-dev apache2-utils git libxml2-dev sshfs nodejs bash tmux sqlite-dev postgresql-dev mysql-dev supervisor \
&& rm -f /var/cache/apk/* \
&& git clone https://github.com/c9/core.git /cloud9 \
&& cd cloud9 \
&& curl -s -L https://raw.githubusercontent.com/c9/install/master/link.sh | bash \
&& /cloud9/scripts/install-sdk.sh \
&& sed -i -e 's_127.0.0.1_0.0.0.0_g' /cloud9/configs/standalone.js \
&& mkdir /workspace \
&& mkdir -p /var/log/supervisor
ADD supervisord.conf /etc/
VOLUME /workspace
EXPOSE 80 8000
ENTRYPOINT ["supervisord", "--nodaemon", "--configuration", "/etc/supervisord.conf"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment