Files
opencommit-gitea/test/Dockerfile
T
2024-03-25 12:01:05 +08:00

22 lines
403 B
Docker

FROM ubuntu:latest
RUN apt-get update && apt-get install -y curl git
# Install Node.js v20
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
RUN apt-get install -y nodejs
# Setup git
RUN git config --global user.email "test@example.com"
RUN git config --global user.name "Test User"
COPY . /app
WORKDIR /app
RUN ls -la
RUN npm install
RUN npm run build
CMD ["npm", "run", "test:e2e"]