forked from strapi/strapi-docker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
37 lines (28 loc) · 856 Bytes
/
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
FROM node:10-alpine
LABEL maintainer="Luca Perret <[email protected]>" \
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.version=latest \
org.label-schema.schema-version="1.0"
WORKDIR /usr/src/api
RUN echo "unsafe-perm = true" >> ~/.npmrc
RUN apk add --no-cache \
autoconf \
automake \
gcc \
libc-dev \
libtool \
make \
nasm \
zlib-dev
RUN npm install -g strapi@beta
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"]