You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
782 B
34 lines
782 B
FROM node:19.4.0-slim as node
|
|
|
|
WORKDIR /app/
|
|
|
|
COPY ./package.json .
|
|
COPY ./package-lock.json .
|
|
COPY ./inc ./inc
|
|
COPY ./layouts ./layouts
|
|
COPY ./platforms ./platforms
|
|
COPY ./routes ./routes
|
|
COPY ./env.js .
|
|
COPY ./helpers.js .
|
|
COPY ./rollup.config.js .
|
|
COPY ./server.js .
|
|
|
|
RUN npm install
|
|
RUN ls -al
|
|
RUN npm run view-mode
|
|
|
|
# Clone the conf files into the docker container
|
|
ARG CAPROVER_GIT_COMMIT_SHA=${CAPROVER_GIT_COMMIT_SHA}
|
|
|
|
#FROM httpd:alpine
|
|
#
|
|
#COPY --from=node /app/public /usr/local/apache2/htdocs
|
|
#
|
|
#COPY ./.htaccess /usr/local/apache2/htdocs
|
|
#
|
|
#RUN sed -i '/LoadModule rewrite_module/s/^#//g' /usr/local/apache2/conf/httpd.conf && \
|
|
# sed -i 's#AllowOverride [Nn]one#AllowOverride All#' /usr/local/apache2/conf/httpd.conf
|
|
#
|
|
#WORKDIR /usr/local/apache2/htdocs
|
|
|
|
EXPOSE 3010
|
|
|