Skip to content
Snippets Groups Projects
Unverified Commit 80e78e8d authored by mweidling's avatar mweidling Committed by GitHub
Browse files

Merge pull request #37 from OCR-D/dockerize

Dockerize
parents 2d5344ac 92a99f89
No related branches found
No related tags found
No related merge requests found
FROM node:lts-alpine as build-stage
# make the 'app' folder the current working directory
WORKDIR /app
# copy both 'package.json' and 'package-lock.json' (if available)
COPY package*.json ./
# install project dependencies
RUN npm install
# copy project files and folders to the current working directory (i.e. 'app' folder)
COPY . .
RUN npm run build
# production stage
FROM nginx:stable-alpine as production-stage
COPY --from=build-stage /app/dist/assets /usr/share/nginx/html/quiver-frontend/assets
COPY --from=build-stage /app/dist/index.html /usr/share/nginx/html/index.html
......@@ -29,3 +29,17 @@ npm run build
```sh
npm run lint
```
## Project Setup with Docker
Build the Docker image:
```sh
docker build -t qfa .
```
Run a container based on this image:
```sh
docker run --rm -d --name qfa-server -p 8083:80 qfa
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment