Skip to content
Snippets Groups Projects
Verified Commit a0033939 authored by David Beniamine's avatar David Beniamine
Browse files

Remove build of prod and switch back to NPM

parent 8c7bd5b6
No related branches found
No related tags found
1 merge request!17Resolve "Build dependencies from POC"
...@@ -5,9 +5,11 @@ RUN chown -R node:node /opt ...@@ -5,9 +5,11 @@ RUN chown -R node:node /opt
EXPOSE 9000 EXPOSE 9000
WORKDIR /opt WORKDIR /opt
USER node USER node
RUN yarn install CMD npm run serve
RUN yarn run build
CMD yarn run serve FROM mirador as builder
RUN npm install
RUN npm run build
FROM caddy:latest as httpd FROM caddy:latest as httpd
COPY --from=mirador /opt/public /srv COPY --from=builder /opt/public /srv
version: "3.3" version: "3.3"
services: services:
devserver: httpd:
build: build:
context: . context: .
target: mirador target: mirador
...@@ -15,10 +15,6 @@ services: ...@@ -15,10 +15,6 @@ services:
volumes: volumes:
- ./:/opt - ./:/opt
httpd:
ports:
- $PORT:80
annotot: annotot:
ports: ports:
- ${ANNOTOT_PORT}:3000 - ${ANNOTOT_PORT}:3000
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment