-
Notifications
You must be signed in to change notification settings - Fork 72
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (25 loc) · 766 Bytes
/
Dockerfile
File metadata and controls
32 lines (25 loc) · 766 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
27
28
29
30
31
32
FROM node:iron-trixie-slim
WORKDIR /site
COPY package*.json /site/
RUN apt-get update && apt-get upgrade -y
RUN apt-get install git curl -y
RUN npm install
# Install Vale
RUN set -eux; \
ARCH=$(uname -m); \
if [ "$ARCH" = "x86_64" ]; then \
VALE_ARCH="64-bit"; \
elif [ "$ARCH" = "aarch64" ] || [ "$ARCH" = "arm64" ]; then \
VALE_ARCH="arm64"; \
else \
echo "Unsupported architecture: $ARCH"; exit 1; \
fi; \
curl -L -o vale.tar.gz "https://github.com/errata-ai/vale/releases/download/v3.13.0/vale_3.13.0_Linux_${VALE_ARCH}.tar.gz"; \
tar -xzf vale.tar.gz; \
mv vale /usr/local/bin/vale; \
rm vale.tar.gz; \
vale --version
ENV HOST=0.0.0.0
ENV PORT=4321
# Expose the dev server port
EXPOSE 4321