https://github.com/bartholomej/angular-firebase-docker
Lightweight Docker image based on NodeJS 9 with Angular CLI, Firebase Tools and Yarn
https://github.com/bartholomej/angular-firebase-docker
angular docker docker-image firebase pipelines yarn
Last synced: 3 months ago
JSON representation
Lightweight Docker image based on NodeJS 9 with Angular CLI, Firebase Tools and Yarn
- Host: GitHub
- URL: https://github.com/bartholomej/angular-firebase-docker
- Owner: bartholomej
- License: mit
- Created: 2018-03-04T16:20:48.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-05-28T21:31:50.000Z (about 6 years ago)
- Last Synced: 2025-09-11T01:19:10.180Z (10 months ago)
- Topics: angular, docker, docker-image, firebase, pipelines, yarn
- Language: Dockerfile
- Size: 85.9 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://greenkeeper.io/)
# Angular CLI + Firebase: Docker image
> Lightweight Docker image based on NodeJS 11 with:
- NodeJS 11.x
- Angular CLI 8.0.2+
- Firebase Tools 6.11.0+
- Yarn 1.15.2+
## Examples
### Bitbucket Pipelines CI
Deploy your Angular 2 project with Bitbucket Pipelines to Firebase Hosting
#### Firebase
- Create Firebase project
#### Firebase token
- Install firebase-tools locally `npm install -g firebase-tools`
- Get the `$FIREBASE_TOKEN` on firebasetool by running:
`firebase login:ci`
#### Environment variables
- Save it to Bitbucket's environment variables `(Project -> Settings > Environment variables)` with variable name `FIREBASE_TOKEN`
#### Pipelines configuration
- Create `bitbucket-pipelines.yml`
```yml
image: bartholomej/angular-firebase
pipelines:
branches:
master:
- step:
caches:
- node
script:
- yarn
- yarn build
- firebase deploy --token "$FIREBASE_TOKEN"
```
#### Conclusion
And now every commit pushed to `master` branch will deploy your changes to Firebase
## Docker hub
Can be pulled from Docker Hub
```docker
docker pull bartholomej/angular-firebase
```
## Development
```docker
docker build -t angular-firebase:v6.x.x .
docker tag angular-firebase:v6.x.x bartholomej/angular-firebase:v6.x.x
docker push bartholomej/angular-firebase:v6.x.x
```