-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from fga-eps-mds/develop
Sprint 10
- Loading branch information
Showing
70 changed files
with
2,560 additions
and
711 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
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,22 +1,17 @@ | ||
# Use an official node runtime as a parent image | ||
FROM node:12 | ||
|
||
RUN wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add - | ||
RUN echo 'deb http://dl.google.com/linux/chrome/deb/ stable main' >> /etc/apt/sources.list | ||
RUN apt-get update && apt-get install --no-install-recommends -y google-chrome-stable | ||
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \ | ||
sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' && \ | ||
apt-get update && apt-get install -yq google-chrome-stable | ||
|
||
WORKDIR /app/foodcare-web | ||
WORKDIR /foodcare-web | ||
|
||
ENV PATH /app/foodcare-web/node_modules/.bin:$PATH | ||
ENV PATH /foodcare-web/node_modules/.bin:$PATH | ||
|
||
# Install dependencies | ||
COPY package.json /app/foodcare-web/package.json | ||
RUN npm install -g @angular/cli | ||
COPY package.json /foodcare-web/ | ||
RUN npm install -g npm | ||
RUN npm install | ||
|
||
|
||
COPY . /app/foodcare-web | ||
|
||
EXPOSE 4200 | ||
|
||
CMD ng serve --host 0.0.0.0 --port 4200 |
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
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,11 +1,13 @@ | ||
version: "3.0" | ||
version: "3.1" | ||
services: | ||
foodcare-web: | ||
container_name: foodcare-web | ||
build: ./ | ||
volumes: | ||
- './:/app/foodcare-web' | ||
- '/app/foodcare-web/node_modules' | ||
restart: always | ||
image: frontend:latest | ||
build: . | ||
ports: | ||
- "4200:4200" | ||
command: bash -c "npm install && ng serve --host 0.0.0.0 --port 4200" | ||
volumes: | ||
- .:/foodcare-web | ||
- /foodcare-web/node_modules | ||
command: ng serve --host 0 --port 4200 |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"$schema": "./node_modules/@angular/service-worker/config/schema.json", | ||
"index": "/index.html", | ||
"assetGroups": [ | ||
{ | ||
"name": "app", | ||
"installMode": "prefetch", | ||
"resources": { | ||
"files": [ | ||
"/favicon.ico", | ||
"/index.html", | ||
"/manifest.webmanifest", | ||
"/*.css", | ||
"/*.js" | ||
] | ||
} | ||
}, { | ||
"name": "assets", | ||
"installMode": "lazy", | ||
"updateMode": "prefetch", | ||
"resources": { | ||
"files": [ | ||
"/assets/**", | ||
"/*.(eot|svg|cur|jpg|png|webp|gif|otf|ttf|woff|woff2|ani)" | ||
] | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.