-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathDockerfile
More file actions
18 lines (14 loc) · 755 Bytes
/
Copy pathDockerfile
File metadata and controls
18 lines (14 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Create the static frontend bundle
FROM node:24-slim AS frontend
WORKDIR /usr/src/frontend
# Copy in our frontend directory. We will need to mount the env.js file externally.
COPY frontend .
# Now building on top of the local middleware image
# Precondition: `docker build -t stemmaweb-middleware ./middleware`
FROM stemmaweb-middleware AS server
WORKDIR /usr/src/app
# Copy the static bundle into the container to /usr/src/www
COPY --from=frontend /usr/src/frontend/www/ /usr/src/app/stemmaweb_middleware/stemmaweb
# Start gunicorn
EXPOSE ${GUNICORN_PORT}
ENTRYPOINT ["sh", "-c", "exec gunicorn --workers=${GUNICORN_WORKERS} --bind=${GUNICORN_BIND} --log-level=${LOG_LEVEL} --access-logfile=- --error-logfile=- 'stemmaweb_middleware:create_app()'"]