cc-haxe/buildServer/Dockerfile

25 lines
418 B
Docker
Raw Normal View History

2023-08-09 13:22:12 +00:00
FROM haxe:4.3-bullseye
RUN apt-get update && apt-get install -y \
git \
make \
&& rm -rf /var/lib/apt/lists/*
RUN curl -fsSL https://deb.nodesource.com/setup_current.x | bash - && \
apt-get install -y nodejs
RUN mkdir -p /app
RUN mkdir -p /repo
WORKDIR /app
COPY index.js /app/index.js
COPY package.json /app/package.json
RUN npm install
ENV REPO_DIR=/repo
EXPOSE 3000
CMD ["node", "index.js"]