-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
26 lines (26 loc) · 892 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM ubuntu:22.04
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
# setup mirror
RUN sed 's@archive.ubuntu.com@free.nchc.org.tw@' -i /etc/apt/sources.list
# apt update
RUN apt-get update
RUN apt-get install -y ssh make build-essential net-tools curl git python3-pip
# install nodejs and npm
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash
RUN apt-get install nodejs
RUN node -v
RUN npm -v
# setup repository file to /etc/fastshop
RUN mkdir /etc/fastshop
COPY . /etc/fastshop
# make var-path directory to store static file.
RUN mkdir /var/fastshop
RUN mkdir /var/fastshop/image
# install tailwindcss and react.js from npm
WORKDIR /etc/fastshop
RUN npm install -D tailwindcss
RUN npm install babel-cli@6 babel-preset-react-app@3
# install pyhton package from pip
RUN pip3 install -r requirements.txt
EXPOSE 8080
CMD flask --debug --app backend/app:create_app run --host 0.0.0.0 --port 8080