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 FROM httpd:2.4
WORKDIR /app RUN mkdir -p /usr/local/apache2/htdocs/_next
RUN npm i -g serve COPY ./out/* /usr/local/apache2/htdocs/
RUN mkdir -p ./_next COPY ./out/_next /usr/local/apache2/htdocs/_next
COPY ./out/* ./
COPY ./out/_next ./_next
EXPOSE 3000
CMD ["npx", "serve", "./"]