Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor update to dockerfile #737

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ eslintrc.json
.eslintcache

request.http
.project
12 changes: 8 additions & 4 deletions dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,27 @@ COPY . .

RUN mkdir /ui-cert /ui-key && npm install
#RUN npm i -S -g serve
RUN npm run build || cat /root/.npm/_logs/*
RUN npm rebuild node-sass
RUN npm run build

FROM nginx:1.19.5-perl

RUN apt-get -y update
RUN apt-get install -y dos2unix
RUN apt-get install -y wget
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY main.conf /etc/nginx/nginx.conf
RUN dos2unix /etc/nginx/conf.d/default.conf
RUN dos2unix /etc/nginx/nginx.conf

WORKDIR /usr/share/nginx/html
COPY ./env.sh .

RUN dos2unix /usr/share/nginx/html/env.sh
RUN chmod +x env.sh

COPY --from=build /usr/src/app/build/ /usr/share/nginx/html
RUN mkdir public
EXPOSE 80

RUN apt-get -y update && apt-get install -y wget
RUN wget https://github.com/jwilder/dockerize/releases/download/v0.6.1/dockerize-linux-amd64-v0.6.1.tar.gz
RUN tar -C /usr/local/bin -xzf dockerize-linux-amd64-v0.6.1.tar.gz

Expand Down