mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
18 lines
757 B
Docker
18 lines
757 B
Docker
# This image will be published as dspace/dspace-angular
|
|
# See https://github.com/DSpace/dspace-angular/tree/main/docker for usage details
|
|
|
|
FROM node:14-alpine
|
|
WORKDIR /app
|
|
ADD . /app/
|
|
EXPOSE 4000
|
|
|
|
# We run yarn install with an increased network timeout (5min) to avoid "ESOCKETTIMEDOUT" errors from hub.docker.com
|
|
# See, for example https://github.com/yarnpkg/yarn/issues/5540
|
|
RUN yarn install --network-timeout 300000
|
|
|
|
# On startup, run in DEVELOPMENT mode (this defaults to live reloading enabled, etc).
|
|
# Listen / accept connections from all IP addresses.
|
|
# NOTE: At this time it is only possible to run Docker container in Production mode
|
|
# if you have a public IP. See https://github.com/DSpace/dspace-angular/issues/1485
|
|
CMD yarn serve --host 0.0.0.0
|