-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
22 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,6 @@ | ||
FROM node:20 | ||
ARG BASE_URL="/" | ||
FROM nginx:latest | ||
|
||
RUN apt-get -qq update && apt-get -qqy install nginx && apt-get clean | ||
COPY ./packages/gephi-lite/build/ /var/www/html/ | ||
COPY ./nginx.conf /etc/nginx/conf.d/default.conf | ||
|
||
COPY . /opt/code | ||
WORKDIR /opt/code | ||
RUN npm install && npm cache clean --force | ||
RUN npm run build | ||
RUN rm /var/www/html/* | ||
RUN cp -f nginx.conf /etc/nginx/sites-available/default | ||
RUN cp -R build/* /var/www/html/ | ||
|
||
EXPOSE 80 | ||
|
||
CMD ["nginx", "-g", "daemon off;"] | ||
EXPOSE 80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters