bw-hspc-contest-env/web/Dockerfile

24 lines
438 B
Docker

FROM ubuntu:22.04
WORKDIR /app
RUN apt-get update
RUN apt-get install curl -y
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
RUN apt-get install nodejs git -y
RUN git config --global user.name "Admin"
RUN git config --global user.email noemail@example.com
COPY package*.json ./
RUN npm install
COPY . .
ENV PORT=3000
EXPOSE 3000
EXPOSE 7006
RUN npm run build
RUN chmod +x ./docker/entry.sh
CMD ["./docker/entry.sh"]