diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index ab40bee7b148c606c519a425b810704c92691b29..0000000000000000000000000000000000000000 --- a/.dockerignore +++ /dev/null @@ -1,4 +0,0 @@ -.* -node_modules -npm-debug.log -*.sublime-project \ No newline at end of file diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 513c56e3e5546514b8d0a9b66a953b3ebe80ebc3..0000000000000000000000000000000000000000 --- a/Dockerfile +++ /dev/null @@ -1,39 +0,0 @@ -# This is to build a container that demos the Mol* canvas app -# Source material: https://nodejs.org/en/docs/guides/nodejs-docker-webapp/ -# Source material: https://derickbailey.com/2017/05/31/how-a-650mb-node-js-image-for-docker-uses-less-space-than-a-50mb-image/ -# Source material: https://hub.docker.com/_/node/ - - -### Builder Stage (Multi-Stage Docker Build) -# Use the slimed NodeJS source, yielding a space savings of 600MB (~66% of total) -FROM node:alpine as builder -ENV NODEROOT /usr/src/app/ - -# Create app directory -WORKDIR $NODEROOT - -# Install app dependencies -# A wildcard is used to ensure the following are copied -# package.json AND package-lock.json AND tslint.json AND tsconfig.json are copied where available (npm@5+) -COPY *.json ./ - -# Install all dependencies and copy results -RUN npm install -COPY . . - -# Build library and canvas application then copy results -RUN npm run build -RUN npm run build-canvas -COPY . . - -### Runtime Stage (Multi-Stage Docker Build) -FROM httpd:2.4 as runtime -ENV NODEROOT /usr/src/app -ENV HTTPDROOT /usr/local/apache2/htdocs/ - -## Code must be placed into /usr/local/apache2/htdocs/ -WORKDIR $HTTPDROOT -COPY --from=builder $NODEROOT/build/canvas/ . - -# Open ports for HTTP -EXPOSE 80 diff --git a/README.md b/README.md index 9cbb4bd127f3aa67fefc861e3a101740f75fc1f0..4cb1edf7ebd95da6288957b9d0bd2a11d54efa64 100644 --- a/README.md +++ b/README.md @@ -73,15 +73,6 @@ From the root of the project: and navigate to `build/viewer` -**Run via Docker** - -Build the docker image - - docker build -t molstar/proto:httpd . - -Run the image - - docker run -d -p 80:80 molstar/proto:httpd ### Code generation **CIF schemas**