simonsobs / ocs-web

Browser-rendered control panels for OCS
BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

Replace npm dev server with nginx in container #18

Closed BrianJKoopman closed 1 year ago

BrianJKoopman commented 1 year ago

I've held off on the README update until we get the config file part working, but this replaces the development server in the container with nginx. Based on the setup in nextline-web.

You can test locally:

$ docker build -t ocs-web:nginx .
$ docker run -d --rm -p 80:80 ocs-web:nginx

Navigate to http://localhost to view.

I have this currently running on a Yale machine too.

BrianJKoopman commented 1 year ago

Ah, right, now my old method of determining the ocs-web version using npm won't work. We'll have to come up with something else.