mirror of
https://github.com/zhigang1992/pocketbase-typegen.git
synced 2026-01-12 09:14:16 +08:00
* add geoPoint field * refactor dockerfile * update snapshots * fix integration tests * fix output directory
29 lines
708 B
Docker
29 lines
708 B
Docker
# Dockerfile to run e2e integration tests against a test PocketBase server
|
|
FROM node:16-alpine3.16
|
|
|
|
ARG POCKETBASE_VERSION=0.27.1
|
|
|
|
WORKDIR /app/
|
|
|
|
# Install the dependencies
|
|
RUN apk add --no-cache \
|
|
ca-certificates \
|
|
unzip \
|
|
wget \
|
|
zip \
|
|
zlib-dev
|
|
|
|
# Build project
|
|
COPY . .
|
|
RUN npm ci
|
|
RUN npm run build
|
|
|
|
# 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/test/integration
|
|
|
|
RUN chmod +x ./test/integration/pocketbase ./test/integration/test.sh ./test/integration/serve.sh
|
|
EXPOSE 8090
|
|
|
|
CMD [ "./test/integration/test.sh" ]
|