Skip to content
This repository was archived by the owner on Mar 27, 2023. It is now read-only.

Commit b1d1878

Browse files
author
Michel Zimmer
committed
Refactor towards React
Drop reload feature
1 parent f0ee7ea commit b1d1878

18 files changed

+9212
-3185
lines changed

.dockerignore

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
**/*
2-
!dist/
3-
!src/
4-
!Dockerfile
5-
!package-lock.json
62
!package.json
7-
!webpack.config.js
3+
!public/
4+
!src/
5+
!tsconfig.json
6+
!yarn.lock

.gitignore

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,29 @@ dist
130130
.yarn/build-state.yml
131131
.yarn/install-state.gz
132132
.pnp.*
133+
134+
135+
## Create React App
136+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
137+
138+
# dependencies
139+
/node_modules
140+
/.pnp
141+
.pnp.js
142+
143+
# testing
144+
/coverage
145+
146+
# production
147+
/build
148+
149+
# misc
150+
.DS_Store
151+
.env.local
152+
.env.development.local
153+
.env.test.local
154+
.env.production.local
155+
156+
npm-debug.log*
157+
yarn-debug.log*
158+
yarn-error.log*

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
16.17.0

Dockerfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
FROM node:16.15.0-alpine AS build
1+
FROM node:16.17.0-alpine AS build
22
WORKDIR /home/node
3-
COPY --chown=node:node package.json package-lock.json ./
4-
RUN npm install
5-
COPY --chown=node:node webpack.config.js ./
6-
COPY --chown=node:node dist ./dist
3+
COPY --chown=node:node package.json yarn.lock ./
4+
RUN yarn install
5+
COPY --chown=node:node tsconfig.json ./
6+
COPY --chown=node:node public ./public
77
COPY --chown=node:node src ./src
8-
RUN npm run build:prod
8+
RUN yarn build
99
FROM nginxinc/nginx-unprivileged:alpine
1010
LABEL org.opencontainers.image.authors="neuland Open Source Maintainers <opensource@neuland-bfi.de>"
1111
LABEL org.opencontainers.image.url="https://github.com/neuland/bandwhichd-ui"
@@ -15,5 +15,5 @@ LABEL org.opencontainers.image.vendor="neuland – Büro für Informatik GmbH"
1515
LABEL org.opencontainers.image.licenses="MIT"
1616
LABEL org.opencontainers.image.title="bandwhichd-ui"
1717
LABEL org.opencontainers.image.description="bandwhichd ui displaying network topology and statistics"
18-
LABEL org.opencontainers.image.version="0.0.2"
19-
COPY --from=build --chown=root:root /home/node/dist /usr/share/nginx/html
18+
LABEL org.opencontainers.image.version="0.1.0"
19+
COPY --from=build --chown=root:root /home/node/build /usr/share/nginx/html

dist/index.html

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)