apamassociacao / APAM

2 stars 3 forks source link

Docker local testing workspace #17

Closed marcosdly closed 6 months ago

marcosdly commented 6 months ago

Docker container definitions include:

There are 2 build targets for the application backend: prod and dev. prod fetches a fresh copy of a specified repository + branch and build it in place. dev copies local files and rebuilds is inside the container.

3 new npm scripts must exist inside the frontend and backend projects: clean, build:dev and build:prod. clean removes any disposable files that aren't relevant to the build and also not ignored by .dockerignore. build:dev and build:prod should build the development (testing) version and the production build, respectively.