forked from kobotoolbox/enketo-express-extra-widgets
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
19 lines (15 loc) · 941 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM enketo/enketo-express:2.3.5
# GitHub Actions adds an authentication header to the Git configuration,
# which prevents us from installing Node modules in *public* GitHub
# repositories. Remove it crudely. See also
# https://github.com/actions/checkout/issues/162#issuecomment-591198381
RUN sed -i '/extraheader = AUTHORIZATION/d' .git/config
# `npm install` custom widgets here. Please note that widgets must also be
# listed in config.json to be enabled; see
# https://github.com/kobotoolbox/enketo-express/blob/master/doc/custom-widgets.md
RUN npm install https://github.com/kobotoolbox/enketo-image-customization-widget.git
RUN npm install https://github.com/kobotoolbox/enketo-literacy-test-widget.git
RUN npm install https://github.com/digitalgreenorg/enketo-ethiopian-calendar.git
# Avoid problems like like:
# Error: Cannot find module 'vex-dialog-enketo' from '/srv/src/enketo_express/public/js/src/module'
RUN npm install