mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-01 00:08:27 +01:00
Add files for creating docker image
* Base on a small node image (alpine-node) * Exclude some files from docker build to make the build go faster
This commit is contained in:
parent
d3a765c86a
commit
dd6ea520af
5
.dockerignore
Normal file
5
.dockerignore
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
.git
|
||||||
|
docker-compose.yml
|
||||||
|
node_modules
|
||||||
|
artifact.json
|
||||||
|
finnbuild.json
|
11
Dockerfile
Normal file
11
Dockerfile
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
FROM mhart/alpine-node:0.10.38
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN npm install --production && \
|
||||||
|
npm run build
|
||||||
|
|
||||||
|
EXPOSE 4242
|
||||||
|
ENTRYPOINT ["npm"]
|
||||||
|
|
||||||
|
CMD ["start"]
|
Loading…
Reference in New Issue
Block a user