Sign inSign up

sergiomtzlosa/quirk

By sergiomtzlosa

•Updated almost 6 years ago

Quirk is a toy quantum circuit simulator

Image
0

334

sergiomtzlosa/quirk repository overview

Download & run the image with the following command:

docker run -d -p 6558:80 sergiomtzlosa/quirk

Then open the browser at: http://localhost:6558⁠

Dockerfile:

FROM alpine:3.12

RUN apk update && apk add --no-cache apache2 apache2-proxy apache2-ssl apache2-utils curl logrotate git openssl git nodejs npm

RUN sed -i 's#/var/www/localhost/htdocs#/var/www/localhost/htdocs/quirk#g' /etc/apache2/httpd.conf

WORKDIR /

RUN git clone https://github.com/Strilanc/Quirk.git quirk && \
    cd quirk && npm install && npm run build && mkdir -p /var/www/localhost/htdocs/quirk && \
    cp -r out/* /var/www/localhost/htdocs/quirk && cd /var/www/localhost/htdocs/quirk && mv quirk.html index.html

RUN apk del apache2 git

EXPOSE 80
CMD ["/usr/sbin/httpd", "-D", "FOREGROUND", "-f", "/etc/apache2/httpd.conf"]

Tag summary

Content type

Image

Digest

Size

190.6 MB

Last updated

almost 6 years ago

docker pull sergiomtzlosa/quirk