我已经用docker创建了一个Rails镜像,但是现在我不知道如何使用Dockerfile来设置passenger。
我的Dockerfile现在是
FROM username/my_app:latest
WORKDIR /my_app
# Expose port 3000 to the Docker host, so we can access it from the outside.
EXPOSE 3000
现在我必须首先运行容器,然后像这样执行passenger命令。
docker run -it -p 4321:3000 \
--name my_app \
username/my_ap
我正在使用Firebase=false在.env文件中设置我的Firebase状态。如果是真的,一些代码会初始化firebase应用程序。当我尝试使用docker-compose up运行系统并运行一些函数时,它将返回错误The default Firebase app does not exist. Make sure to initialize the SDK by calling initialize_app(). 为了调试它,我必须在我的docker环境中检查firebase变量是否真的是假的。我试图运行docker exec <container> echo "
我有一个Dockerfile如下所示:
FROM jenkins/jenkins:latest
USER root
RUN whoami
USER jenkins
RUN whoami
和这个码头-合成文件
version: '2'
services:
test:
build:
context: .
dockerfile: Dockerfile
container_name: test
hostname: test
ports:
- '8080:8080'
user:
我对Docker是超级新手。我有一个在Mac上开发的存储库(),它想要在使用Docker的Ubuntu环境中测试它。我创建了一个Dockerfile,如下所示:
FROM ubuntu:18.04
# Update aptitude with new repo
RUN apt-get update \
&& apt-get install -y git
RUN git clone https://github.com/hect1995/UBIMET_Challenge.git
WORKDIR /UBIMET_Challenge
RUN mkdir build
WOR