Try different server
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Michael Debenjak
2023-02-28 14:39:06 +01:00
parent 33bee146fe
commit f2fdff5a1a
3 changed files with 8 additions and 5 deletions

3
.dockerignore Normal file
View File

@@ -0,0 +1,3 @@
node_modules
.git
.idea

View File

@@ -10,15 +10,15 @@ ENV CI=true
# Install app dependencies
COPY package.json /src/app/
RUN npm install
RUN npm install -g serve
# Bundle app source
COPY . /src/app
# Build and optimize react app
#Not needed if we run with start instead of serving the build files
#RUN npm run build
RUN npm run build
EXPOSE 443
EXPOSE 3000
# defined in package.json
CMD [ "npm", "run", "start:prod" ]
CMD [ "serve", "-s", "build" ]

View File

@@ -46,7 +46,7 @@ function Layout() {
<ul className="nav col-12 col-lg-auto me-lg-auto mb-2 justify-content-center mb-md-0">
<li><Link to="/" className="nav-link px-2 text-secondary">Home</Link></li>
<li><a href="#" className="nav-link px-2 text-white">Features</a></li>
<li><Link to="/" className="nav-link px-2 text-white">Features</Link></li>
</ul>
<div className="text-end">