Use momentum to host
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -20,11 +20,7 @@ RUN if [ ! -d "dist" ] && [ ! -d "node_modules" ]; then npm install; fi
|
||||
RUN BUILD_MODE=$([ "$NODE_ENV" = "prod" ] && echo "prod" || echo "dev") && \
|
||||
if [ ! -d "dist" ]; then npm run "build:$BUILD_MODE"; fi
|
||||
|
||||
# Use Nginx to serve
|
||||
FROM nginx:1.20-alpine
|
||||
COPY --from=build /app/dist /usr/share/nginx/html
|
||||
COPY docker/config/robots.txt /usr/share/nginx/html/robots.txt
|
||||
COPY docker/config/nginx.conf /etc/nginx/nginx.conf
|
||||
COPY docker/scripts/setup-environment.sh /docker-entrypoint.d/setup-environment.sh
|
||||
RUN chmod +x /docker-entrypoint.d/setup-environment.sh
|
||||
EXPOSE 80
|
||||
# Use Momentum to serve
|
||||
FROM git.zakscode.com/momentum/momentum:diarization
|
||||
RUN rm -rf /app/server/public/assets /app/server/public/index.html
|
||||
COPY --from=build /app/dist /app/server/public
|
||||
|
||||
Reference in New Issue
Block a user