mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-30 00:00:13 +01:00
use symlink for Dockerfile
This commit is contained in:
parent
852decd677
commit
c6d2f0caa6
1 changed files with 1 additions and 22 deletions
22
Dockerfile
22
Dockerfile
|
@ -1,22 +0,0 @@
|
|||
FROM node:8.2
|
||||
|
||||
# Create app directory
|
||||
RUN mkdir -p /usr/src/app
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
RUN apt install -y git
|
||||
|
||||
# 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" ]
|
1
Dockerfile
Symbolic link
1
Dockerfile
Symbolic link
|
@ -0,0 +1 @@
|
|||
packaging/docker/Dockerfile
|
Loading…
Add table
Reference in a new issue