remove dependencies from other images and use gitmodules for docker build
This commit is contained in:
parent
2742bbd445
commit
5718a4f147
28
Dockerfile
28
Dockerfile
@ -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
2
api
@ -1 +1 @@
|
||||
Subproject commit 55ab5062de4855a2652c93e355eb049b2345e90b
|
||||
Subproject commit 91e5c333400733ae0e7a8d98b7b5cd15ccf74378
|
||||
2
ui
2
ui
@ -1 +1 @@
|
||||
Subproject commit 472e07bd29d4a6c2699035c35d0fc53ea32089ee
|
||||
Subproject commit 97794bcbf9209e98b7721d980d374e88e6c60bcf
|
||||
Loading…
x
Reference in New Issue
Block a user