mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
Allow port to be customized in dockerfile
This commit is contained in:
parent
5213146406
commit
3e91cd09bb
1 changed files with 5 additions and 2 deletions
|
|
@ -38,11 +38,14 @@ RUN ng build --output-path=dist
|
|||
# base image
|
||||
FROM nginx:1.16.0-alpine
|
||||
|
||||
# environmental variables
|
||||
ENV PORT=80
|
||||
|
||||
# copy artifact build from the 'build environment'
|
||||
COPY --from=build /app/dist /usr/share/nginx/html
|
||||
|
||||
# expose port 80
|
||||
EXPOSE 80
|
||||
# expose port: defaults to 80
|
||||
EXPOSE $PORT
|
||||
|
||||
# run nginx
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue