Closed ShrimpCryptid closed 2 months ago
Added @amilworks because he has written a dockerfile for this viewer before
Added @amilworks because he has written a dockerfile for this viewer before
Yes, I made a very minimal Dockerfile
that worked with the cvapipe app as a standalone service. I embedded the 3D Cell Viewer using an iFrame. Below is the Dockerfile I used.
# Official Node.js runtime as a parent image
FROM node:14
# Set working dir inside the container
WORKDIR /app
# Copy the rest of the application code to the container
COPY . .
# Expose the port for the app
EXPOSE 9020
# Define command to run 3D Viewer application
CMD [ "npm", "start" ]
I built a separate service to serve images from AWS which simply uses FastAPI.
Closes #169, "Dockerfile is out of date". Adds a new Dockerfile that performs the build and makes the files available via a nginx dev server, and fixes some other bugs along the way with video.
Changes
Verification
Follow the steps specified in the README! Spelling them out here:
docker build -t 3d-volume-viewer .
docker run --rm -p 8080:80 --name 3d-volume-viewer 3d-volume-viewer