forked from silexlabs/silex-platform
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
49 lines (43 loc) · 1.24 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
FROM node:18
RUN apt-get update
EXPOSE 6805
# see doc about env vars here: https://github.com/silexlabs/Silex/wiki/How-to-Host-An-Instance-of-Silex#environment-variables
# these can be overridden using the `-e` option in docker run
ENV SILEX_EXPRESS_JSON_LIMIT=1mb
ENV SILEX_EXPRESS_TEXT_LIMIT=10mb
ENV SILEX_EXPRESS_URLENCODED_LIMIT=1mb
ENV SILEX_SESSION_NAME=silex-session
ENV SILEX_SESSION_SECRET="replace this session secret in env vars"
ENV SILEX_PORT=6805
ENV SILEX_HOST=localhost
ENV SILEX_PROTOCOL=http
ENV SILEX_DEBUG=FALSE
ENV SILEX_CONFIG=
ENV SILEX_SSL_PORT=
ENV SILEX_FORCE_HTTPS=
ENV SILEX_SSL_PRIVATE_KEY=
ENV SILEX_SSL_CERTIFICATE=
ENV SILEX_FORCE_HTTPS_TRUST_XFP_HEADER=
ENV SILEX_CORS_URL=
ENV SILEX_CLIENT_CONFIG=
ENV SILEX_FS_ROOT=
ENV SILEX_URL=http://localhost:6805
# Additional environment variables based on README
ENV STORAGE_CONNECTORS=ftp
ENV HOSTING_CONNECTORS=ftp,download
ENV SILEX_FS_HOSTING_ROOT=/silex/hosting/
ENV FTP_STORAGE_PATH=
ENV FTP_HOSTING_PATH=
ENV GITLAB_DISPLAY_NAME=
ENV GITLAB_DOMAIN=
ENV GITLAB_CLIENT_ID=
ENV GITLAB_CLIENT_SECRET=
ENV GITLAB2_DISPLAY_NAME=
ENV GITLAB2_DOMAIN=
ENV GITLAB2_CLIENT_ID=
ENV GITLAB2_CLIENT_SECRET=
COPY . /silex
WORKDIR /silex
RUN npm install
# RUN npm run build
CMD ["npm", "start"]