Skip to content

Commit

Permalink
Merge pull request #368 from ProcessMaker/FOUR-7089
Browse files Browse the repository at this point in the history
FOUR-7089 Added Dockerfile to VFE
  • Loading branch information
caleeli authored Feb 17, 2023
2 parents 7002d59 + 7d581cb commit 7348aa4
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
.idea
npm-debug.log
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM node:16-alpine

WORKDIR /app

COPY package*.json ./

RUN npm install

COPY . .

EXPOSE 8080

CMD ["npm", "run", "serve"]
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,21 @@ rules.
### Validation Parameters
* validation: string representation of the validation rules
* validationData: a reference to a data model to validate against. Useful if you are using rules that reference other properties
* validationMessages: A custom map of validation messages to use if defaults are not wanted (ex: translations). See validatorjs repository for the formatting of this parameter.
* validationMessages: A custom map of validation messages to use if defaults are not wanted (ex: translations). See validatorjs repository for the formatting of this parameter.


## Running with Docker (Development)
To test VueFormElements using Docker, you can build this image locally and test it out. By running these commands from your terminal.
```shell
docker build vfe:<tag name> .
docker run -p 8080:8080 -d vfe:<tag name>
```
OR

You can use **docker compose** to spin up your container easily by running these commands
```shell
docker compose build
docker compose up
```
Once you are done, you can `control + c` to terminate the process
* Go to your browser and go to http://localhost:8080
6 changes: 6 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
services:
vfe:
build:
dockerfile: Dockerfile
ports:
- 8080:8080

0 comments on commit 7348aa4

Please sign in to comment.