forked from strapi/strapi-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (19 loc) · 781 Bytes
/
Dockerfile
File metadata and controls
26 lines (19 loc) · 781 Bytes
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
FROM node:9.11.2-alpine
LABEL maintainer="alex <me@alexwerffe.li>" \
org.label-schema.vendor="Strapi" \
org.label-schema.name="Strapi Docker image" \
org.label-schema.description="Strapi containerized" \
org.label-schema.url="https://strapi.io" \
org.label-schema.vcs-url="https://github.com/strapi/strapi-docker" \
org.label-schema.vcs-url="https://github.com/awerffeli/strapi-docker" \
org.label-schema.version=latest \
org.label-schema.schema-version="1.0"
WORKDIR /usr/src/api
RUN npm install -g strapi@3.0.0-alpha.12.4
COPY strapi.sh ./
RUN chmod +x ./strapi.sh
EXPOSE 1337
COPY healthcheck.js ./
HEALTHCHECK --interval=15s --timeout=5s --start-period=30s \
CMD node /usr/src/api/healthcheck.js
CMD ["./strapi.sh"]