-
Notifications
You must be signed in to change notification settings - Fork 20
/
Dockerfile
34 lines (26 loc) · 829 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
# Dockerfile to run e2e integration tests against a test PocketBase server
FROM node:16-alpine3.16
ARG POCKETBASE_VERSION=0.15.0
WORKDIR /app/output/
WORKDIR /app/
# Install the dependencies
RUN apk add --no-cache \
ca-certificates \
unzip \
wget \
zip \
zlib-dev
# Download Pocketbase and install it
ADD https://github.com/pocketbase/pocketbase/releases/download/v${POCKETBASE_VERSION}/pocketbase_${POCKETBASE_VERSION}_linux_amd64.zip /tmp/pocketbase.zip
RUN unzip /tmp/pocketbase.zip -d /app/
# Install dependencies for the pocketbase-typegen package
COPY package.json package-lock.json ./
RUN npm ci
# Copy test files
COPY test/integration ./
COPY test/pocketbase-types-example.ts ./
COPY dist/index.js ./dist/index.js
RUN chmod +x ./pocketbase
RUN chmod +x ./run.sh
EXPOSE 8090
CMD [ "./run.sh" ]