25 lines
418 B
Docker
25 lines
418 B
Docker
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"]
|