diff options
Diffstat (limited to 'docker/Dockerfile')
-rw-r--r-- | docker/Dockerfile | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile deleted file mode 100644 index 799bb0b..0000000 --- a/docker/Dockerfile +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | FROM node:lts-alpine as build | ||
2 | |||
3 | WORKDIR /server-build | ||
4 | |||
5 | RUN ["apk", "add", "--no-cache", "python", "make", "gcc", "g++", "libc-dev", "sqlite-dev"] | ||
6 | |||
7 | COPY . /server-build | ||
8 | |||
9 | RUN ["npm", "ci", "--production", "--build-from-source", "--sqlite=/usr/local"] | ||
10 | |||
11 | FROM node:lts-alpine | ||
12 | |||
13 | WORKDIR /app | ||
14 | LABEL maintainer="xthursdayx" | ||
15 | |||
16 | ENV HOST=0.0.0.0 PORT=3333 | ||
17 | |||
18 | RUN ["apk", "add", "--no-cache", "sqlite-libs", "curl"] | ||
19 | |||
20 | COPY --from=build /server-build /app | ||
21 | RUN ["touch", ".env"] | ||
22 | RUN ["npm", "i", "-g", "@adonisjs/cli"] | ||
23 | |||
24 | HEALTHCHECK --interval=5m --timeout=3s CMD curl -sSf http://localhost:${PORT}/health | ||
25 | |||
26 | COPY docker/entrypoint.sh /entrypoint.sh | ||
27 | CMD ["/entrypoint.sh"] \ No newline at end of file | ||