use httpd image

This commit is contained in:
Sasha 2023-11-02 15:33:29 +01:00
parent fb2ceb6f7d
commit 54413491e5
No known key found for this signature in database

View File

@ -1,8 +1,4 @@
FROM node:18
WORKDIR /app
RUN npm i -g serve
RUN mkdir -p ./_next
COPY ./out/* ./
COPY ./out/_next ./_next
EXPOSE 3000
CMD ["npx", "serve", "./"]
FROM httpd:2.4
RUN mkdir -p /usr/local/apache2/htdocs/_next
COPY ./out/* /usr/local/apache2/htdocs/
COPY ./out/_next /usr/local/apache2/htdocs/_next