mirror of
https://github.com/fjykTec/ModernWMS.git
synced 2024-11-15 05:05:21 +08:00
18 lines
644 B
Text
18 lines
644 B
Text
|
FROM ubuntu:22.04
|
||
|
|
||
|
RUN apt-get update && apt-get install -y wget curl
|
||
|
RUN wget https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \
|
||
|
&& dpkg -i packages-microsoft-prod.deb \
|
||
|
&& apt-get update \
|
||
|
&& apt-get install -y aspnetcore-runtime-7.0 nginx \
|
||
|
&& curl -fsSL https://deb.nodesource.com/setup_16.x | /bin/bash - \
|
||
|
&& apt install -y nodejs \
|
||
|
&& mkdir -p /app/ /frontend/
|
||
|
WORKDIR /app
|
||
|
COPY ./nginx.conf /etc/nginx/nginx.conf
|
||
|
COPY ./frontend /frontend/
|
||
|
COPY ./backend /app/
|
||
|
COPY ./run.sh /app/run.sh
|
||
|
RUN chmod u+x /app/run.sh
|
||
|
EXPOSE 80
|
||
|
ENTRYPOINT ["/bin/bash"]
|