Author : nipuro

I’m trying to containerize a demo nodejs + reactjs + postgresql application and the directory structure looks something like this: demo: -client -.env – Dockerfile.client – package.json -server – .env – Dockerfile.server – package.json .env docker-compose.yml docker-compose.yml version: ‘3.8’ services: client: container_name: ${APP_NAME}_fe build: dockerfile: ./client/Dockerfile.client environment: CHOKIDAR_USEPOLLING: "true" image: ${APP_NAME}_img_fe volumes: – ./client:/app – ..

Read more

I have a small python app developed with docker containers. My setup is: Dockerfile FROM python:3 ARG http_proxy ARG https_proxy ENV http_proxy ${http_proxy} ENV https_proxy ${https_proxy} ENV VIRTUAL_ENV=/opt/venv ENV PATH="$VIRTUAL_ENV/bin:$PATH" RUN apt-get update RUN apt install -y vim screen RUN echo ‘alias py="/opt/venv/bin/python"’ >> /root/.bashrc && echo ‘alias ls="ls –color=auto"’ >> /root/.bashrc && echo ‘PS1="[email protected]:[e[33m]w[e[0m]$ ..

Read more