Use apache for static serving
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -15,12 +15,8 @@ FROM build-deps AS build
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
FROM base AS runtime
|
||||
COPY --from=prod-deps /app/node_modules ./node_modules
|
||||
COPY --from=build /app/dist ./dist
|
||||
FROM httpd:latest AS runtime
|
||||
COPY --from=prod-deps /app/node_modules /usr/local/apache2/htdocs/node_modules
|
||||
COPY --from=build /app/dist /usr/local/apache2/htdocs/dist
|
||||
|
||||
ENV HOST=0.0.0.0
|
||||
ENV PORT=4321
|
||||
EXPOSE 4321
|
||||
|
||||
CMD node ./dist/server/entry.mjs
|
||||
EXPOSE 80
|
||||
Reference in New Issue
Block a user