File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed
Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM nginx:alpine
2+
3+ # Copy app source to work directory
4+ COPY ./dist /usr/share/nginx/html
Original file line number Diff line number Diff line change @@ -187,3 +187,27 @@ Sometimes the ```www``` symlink is removed (e.g. git clone). Run this command to
187187npm 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+ ```
You can’t perform that action at this time.
0 commit comments