1 Star 0 Fork 36

JersonLiang/scada

forked from Sam/scada 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 1.36 KB
一键复制 编辑 原始数据 按行查看 历史
MatthewReed303 提交于 2024-08-25 17:59 . Update Dockerfile
FROM node:18-bookworm
ARG NODE_SNAP=false
RUN apt-get update && apt-get install -y dos2unix
# Change working directory
WORKDIR /usr/src/app
# Clone FUXA repository
RUN git clone https://github.com/frangoteam/FUXA.git
# Install build dependencies for node-odbc
RUN apt-get update && apt-get install -y build-essential unixodbc unixodbc-dev
# Convert the script to Unix format and make it executable
RUN dos2unix FUXA/odbc/install_odbc_drivers.sh && chmod +x FUXA/odbc/install_odbc_drivers.sh
WORKDIR /usr/src/app/FUXA/odbc
RUN ./install_odbc_drivers.sh
# Change working directory
WORKDIR /usr/src/app
# Copy odbcinst.ini to /etc
RUN cp FUXA/odbc/odbcinst.ini /etc/odbcinst.ini
# Install Fuxa server
WORKDIR /usr/src/app/FUXA/server
RUN npm install
# Install options snap7
RUN if [ "$NODE_SNAP" = "true" ]; then \
npm install node-snap7; \
fi
# Workaround for sqlite3 https://stackoverflow.com/questions/71894884/sqlite3-err-dlopen-failed-version-glibc-2-29-not-found
RUN apt-get update && apt-get install -y sqlite3 libsqlite3-dev && \
apt-get autoremove -yqq --purge && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
npm install --build-from-source --sqlite=/usr/bin sqlite3
# Add project files
ADD . /usr/src/app/FUXA
# Set working directory
WORKDIR /usr/src/app/FUXA/server
# Expose port
EXPOSE 1881
# Start the server
CMD [ "npm", "start" ]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/JersonLiang/scada.git
git@gitee.com:JersonLiang/scada.git
JersonLiang
scada
scada
master

搜索帮助