Skip to content
Snippets Groups Projects
Commit 32de64b9 authored by Anthony's avatar Anthony
Browse files

WIP

parent 6df7f503
Branches
No related tags found
No related merge requests found
FROM debian:stable as builder FROM debian:stable as builder
RUN apt-get update && apt-get install -y npm git RUN apt-get update && apt-get install -y npm git
COPY . /opt RUN node -v
COPY mirador-annotations/ /opt
WORKDIR /opt WORKDIR /opt
RUN npm ci
RUN npm run build
FROM caddy:latest as httpd RUN pwd
COPY --from=builder /opt/public /srv RUN npm install
# start app
RUN pwd
CMD ["npm", "start"]
version: "3.3" version: "3.3"
services: services:
httpd: web:
build: . build: .
restart: $RESTART ports:
- ${DEV_PORT}:3000
environment: environment:
- CORS_ALLOWED_HOSTS - CORS_ALLOWED_HOSTS
- WEBPACK_MODE=production
volumes:
- $HTTP_FOLDER:/srv/data
- ./Caddyfile:/etc/caddy/Caddyfile
annotot: annotot:
image: tetraslibre/annotot-app image: tetraslibre/annotot-app
environment: environment:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment