-
-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #517 from gawandeabhishek/feature/dockerize-chooser
Add Dockerfile and docker-compose.yml for the containerization of the Chooser repository.
- Loading branch information
Showing
3 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# https://hub.docker.com/_/node/ | ||
FROM node:14 | ||
|
||
WORKDIR /app | ||
COPY package.json package-lock.json ./ | ||
RUN npm install | ||
|
||
EXPOSE 8080 | ||
|
||
CMD ["npm", "run", "serve"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Use docker compose v2 for non swarm deployments | ||
# https://docs.docker.com/compose/compose-file/compose-file-v2/ | ||
version: '2.4' | ||
|
||
services: | ||
|
||
web: | ||
# Build configuration in Dockerfile | ||
build: . | ||
|
||
# Keep stdin open even if not attached | ||
stdin_open: true | ||
|
||
restart: on-failure | ||
|
||
# Allocate a pseudo-TTY | ||
tty: true | ||
|
||
# Port mapping: Map host port 8080 to container port 8080 | ||
ports: | ||
- '8080:8080' | ||
|
||
volumes: | ||
# Mount the current directory from the host to /app in the container | ||
- '.:/app' | ||
# Mount the /app/node_modules directory from the host | ||
- '/app/node_modules' |