This commit is contained in:
3
.dockerignore
Normal file
3
.dockerignore
Normal file
@@ -0,0 +1,3 @@
|
||||
node_modules
|
||||
.git
|
||||
.idea
|
||||
@@ -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" ]
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user