-
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 #18 from jonigl/docker
Docker
- Loading branch information
Showing
5 changed files
with
26 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
.git |
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,15 @@ | ||
#sudo docker build -t tacs-frontend:1.0.0 . | ||
#docker run -d -p 8080:80 tacs-frontend:1.0.0 | ||
|
||
FROM node:10-alpine AS builder | ||
WORKDIR /build | ||
COPY package.json . | ||
RUN npm install | ||
COPY angular.json . | ||
COPY tsconfig.json . | ||
COPY src src | ||
#RUN apk add --no-cache bash | ||
RUN npm run-script ng -- build --prod | ||
|
||
FROM nginx:1.10-alpine | ||
COPY --from=builder /build/dist/tacs-frontend /usr/share/nginx/html |
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,7 @@ | ||
#docker-compose up | ||
version: '3.7' | ||
services: | ||
frontend: | ||
image: "jonigl/tacs-grupo1-frontend:1.0.0" | ||
ports: | ||
- "8080: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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export const environment = { | ||
production: true, | ||
apiUrl: 'https://tacs-grupo1.herokuapp.com/api/v1' | ||
apiUrl: '/api/v1' | ||
}; |
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