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