mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-30 00:00:13 +01:00
20 lines
426 B
Docker
20 lines
426 B
Docker
FROM node:8.2
|
|
|
|
# Create app directory
|
|
RUN mkdir -p /usr/src/app
|
|
WORKDIR /usr/src/app
|
|
|
|
# use changes to package.json to force Docker not to use the cache
|
|
# when we change our application's nodejs dependencies:
|
|
ADD package.json /usr/src/app
|
|
RUN npm install
|
|
|
|
# Install app dependencies
|
|
COPY . /usr/src/app
|
|
RUN npm run build
|
|
|
|
# Run the app in a local webserver
|
|
RUN npm install -g serve
|
|
EXPOSE 5000
|
|
|
|
CMD [ "serve", "-s", "build" ]
|