mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-09 00:00:01 +01:00
make Dockerfile self-hosting
This commit is contained in:
parent
20a9ad6521
commit
7b51cfc3f1
1 changed files with 4 additions and 2 deletions
|
@ -13,6 +13,8 @@ RUN npm install
|
|||
COPY . /usr/src/app
|
||||
RUN npm run build
|
||||
|
||||
VOLUME /usr/src/app/build
|
||||
# Run the app in a local webserver
|
||||
RUN npm install -g serve
|
||||
EXPOSE 5000
|
||||
|
||||
CMD [ "true" ]
|
||||
CMD [ "serve", "-s", "build" ]
|
||||
|
|
Loading…
Add table
Reference in a new issue