Skip to content
Snippets Groups Projects
Commit df351d9f authored by Cyril L'Orphelin's avatar Cyril L'Orphelin
Browse files

add nginx

parent 84773cee
No related branches found
No related tags found
3 merge requests!5Module Tapes : Try fixing bug 'Mixed Content The page at was loaded over...,!3Openshift deployment,!2Openshift deployment
Pipeline #58608 failed
......@@ -38,12 +38,23 @@ RUN npm cache clean -f
RUN npm install -g n
RUN n stable
RUN curl -o- -L https://yarnpkg.com/install.sh | bash
ENV PATH "$PATH:$HOME/.yarn/bin"
RUN yarn install --ignore-engines
RUN yarn encore dev
RUN $HOME/.yarn/bin/yarn install --ignore-engines
RUN $HOME/.yarn/bin/yarn encore dev
## Add nginx
EXPOSE 8000/tcp
CMD symfony server:start
RUN apk add --update --no-cache nginx
COPY nginx.conf /etc/nginx/
COPY symfony.conf /etc/nginx/conf.d/
RUN echo "upstream php-upstream { server php:9001; }" > /etc/nginx/conf.d/upstream.conf
RUN adduser -D -g '' -G www-data www-data
CMD ["nginx"]
EXPOSE 80
EXPOSE 443
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment