Skip to content
This repository was archived by the owner on Sep 28, 2024. It is now read-only.

Commit 5228cc6

Browse files
committed
core(docker):dockerize app
1 parent bb72c2e commit 5228cc6

File tree

7 files changed

+11933
-46334
lines changed

7 files changed

+11933
-46334
lines changed

.dockerignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules/
2+
Dockerfile*
3+
docker-compose*

Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM node:12-stretch
2+
WORKDIR /app
3+
COPY package.json ./
4+
RUN yarn --loglevel verbose
5+
COPY . .
6+
7+
8+

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,10 @@
33
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/pre-commit/pre-commit/master.svg)](https://results.pre-commit.ci/latest/github/pre-commit/pre-commit/master)
44
<img alt="code style: prettier" src="https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square"></a>
55
<a href="https://github.com/psf/black/blob/master/LICENSE"><img alt="License: MIT" src="https://black.readthedocs.io/en/stable/_static/license.svg"></a>
6+
7+
# Quick Start
8+
9+
```
10+
docker-compose build --no-cache
11+
docker-compose up -d
12+
```

docker-compose.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: '3.8'
2+
3+
services:
4+
ice-cream:
5+
build:
6+
context: ./
7+
volumes:
8+
- ./src:/app/src
9+
command: /bin/sh -c 'npm run serve:web'
10+
ports:
11+
- '4200:4200'

0 commit comments

Comments
 (0)