Skip to content

Commit

Permalink
test: improve Dockerfile for test environment setup
Browse files Browse the repository at this point in the history
Co-Authored-By: Nico Krause <[email protected]>
  • Loading branch information
devin-ai-integration[bot] and silkroadnomad committed Jan 18, 2025
1 parent 9603c00 commit 30f353b
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
FROM node:20
WORKDIR /usr/src/app

# Copy package files first
COPY relay/package*.json ./
RUN npm install

# Copy remaining files
COPY relay/ ./
COPY docker/entrypoint.sh ./
COPY relay/.env.example ./.env
RUN rm -rf node_modules && npm install

# Set test environment variables
ENV CI=true
ENV RELAY_LOCAL_REGTTEST=true
ENV NODE_ENV=test

ENTRYPOINT [ "./entrypoint.sh" ]
CMD [ "node", "src/relay.js"]

0 comments on commit 30f353b

Please sign in to comment.