remove dependencies from other images and use gitmodules for docker build

This commit is contained in:
Michael Schramm 2020-06-03 11:21:52 +02:00
parent 2742bbd445
commit 5718a4f147
3 changed files with 26 additions and 6 deletions

View File

@ -1,9 +1,29 @@
FROM ohmyform/ui as builder
FROM node:12 as builder
WORKDIR /usr/src/app
COPY ui/ .
RUN yarn install --frozen-lockfile
RUN yarn export
FROM ohmyform/api
FROM node:12
LABEL maintainer="OhMyForm <admin@ohmyform.com>"
COPY --from=builder /usr/src/app/out /usr/src/app/public
WORKDIR /usr/src/app
COPY api/ .
RUN yarn install --frozen-lockfile
RUN yarn build
ENV PORT=3000 \
SECRET_KEY=ChangeMe \
CREATE_ADMIN=FALSE \
ADMIN_EMAIL=admin@ohmyform.com \
ADMIN_USERNAME=root \
ADMIN_PASSWORD=root
EXPOSE 3000
CMD [ "yarn", "start:prod" ]

2
api

@ -1 +1 @@
Subproject commit 55ab5062de4855a2652c93e355eb049b2345e90b
Subproject commit 91e5c333400733ae0e7a8d98b7b5cd15ccf74378

2
ui

@ -1 +1 @@
Subproject commit 472e07bd29d4a6c2699035c35d0fc53ea32089ee
Subproject commit 97794bcbf9209e98b7721d980d374e88e6c60bcf