bw-hspc-contest-env/web/Dockerfile

24 lines
438 B
Docker
Raw Normal View History

2023-05-02 14:59:29 -04:00
FROM ubuntu:22.04
WORKDIR /app
RUN apt-get update
2024-01-16 20:19:18 -05:00
RUN apt-get install curl -y
2023-05-02 14:59:29 -04:00
2024-01-16 20:19:18 -05:00
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
RUN apt-get install nodejs git -y
2023-05-02 14:59:29 -04:00
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
2023-10-15 14:17:45 -04:00
RUN chmod +x ./docker/entry.sh
CMD ["./docker/entry.sh"]