【发布时间】:2021-04-19 08:32:31
【问题描述】:
我是天蓝色门户的新手。我将 docker 映像推送到 azure 容器注册表,然后创建一个使用该映像的 Web 应用程序。现在想在图像中查看我的所有数据,或者我需要这些数据,因为每次我的应用程序执行它都会创建一些新文件,所以我需要这些文件或者我想查看这些文件。 有人可以告诉我该怎么做吗? 这是我的 docker 文件。
FROM continuumio/miniconda3:latest
RUN apt-get update && apt-get install -y \
ca-certificates \
curl
ARG NODE_VERSION=14.16.0
ARG NODE_PACKAGE=node-v$NODE_VERSION-linux-x64
ARG NODE_HOME=/opt/$NODE_PACKAGE
ENV NODE_PATH $NODE_HOME/lib/node_modules
ENV PATH $NODE_HOME/bin:$PATH
RUN curl https://nodejs.org/dist/v$NODE_VERSION/$NODE_PACKAGE.tar.gz | tar -xzC /opt/
COPY environment.yml .
COPY requirements.txt .
RUN pip install -r requirements.txt
RUN conda install -c conda-forge librosa
WORKDIR /with
RUN mkdir /app1
COPY model /app1/model
COPY assets /app1/assets
COPY build /app1/build
COPY node_modules /app1/node_modules
RUN apt-get install -y openssh \
&& echo "root:Docker!" | chpasswd
# Copy the sshd_config file to the /etc/ssh/ directory
COPY sshd_config /etc/ssh/
EXPOSE 8080 2222
# CMD ["python", "/app1/model/main.py", "/app1/assets/uploads/file.txt"]
CMD ["node", "/app1/build/server.js"]
【问题讨论】:
标签: azure azureportal azure-container-service azure-container-registry