Skip to content

Commit c9c3b10

Browse files
committed
Merge branch 'feature/docker-impl' into develop
2 parents 87366b6 + 7db4d78 commit c9c3b10

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
FROM nginx:alpine
2+
3+
# Copy app source to work directory
4+
COPY ./dist /usr/share/nginx/html

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,3 +187,27 @@ Sometimes the ```www``` symlink is removed (e.g. git clone). Run this command to
187187
npm start -- mobile.link
188188
```
189189

190+
## Docker
191+
There is a ```Dockerfile``` unsing the [nginx](https://hub.docker.com/_/nginx/) image to build the docker image.
192+
193+
### Getting started
194+
First build your aurelia app with
195+
```shell
196+
npm start build
197+
```
198+
199+
Then build the image with
200+
```shell
201+
docker build -t nginx-aurelia .
202+
```
203+
204+
Then run a container with
205+
```shell
206+
docker run --name aurelia-app -d -p 8080:80 nginx-aurelia
207+
```
208+
Now your website is available with ```http://localhost:8080```.
209+
210+
If you like to update the source do this
211+
```shell
212+
docker cp ./dist/. mycontainer:/usr/share/nginx/html
213+
```

0 commit comments

Comments
 (0)