Skip to content

Instantly share code, notes, and snippets.

@foxmask
Created May 23, 2019 14:07
Show Gist options
  • Save foxmask/6f1a7e413fd852278c49a4bdf652625a to your computer and use it in GitHub Desktop.
Save foxmask/6f1a7e413fd852278c49a4bdf652625a to your computer and use it in GitHub Desktop.
Dockerfile-front new2
version: '2'
services:
backend:
image: foxmask/joplin-web:joplin-back
build:
context: .
dockerfile: Dockerfile-back
environment:
- TZ=Europe/Paris
command: gunicorn joplin_web.wsgi -w 4 --preload --log-file - --access-logfile - --bind 0.0.0.0:8001
ports:
- "8001:8001"
frontend:
image: foxmask/joplin-web:joplin-front
build:
context: .
dockerfile: Dockerfile-front
command: http-server dist
ports:
- "8080:8080"
FROM python:3.6
ENV PYTHONUNBUFFERED 1
RUN mkdir /app/
COPY . /app
WORKDIR /app/
RUN apt-get update && apt-get install -y sqlite3
RUN pip install -r requirements.txt
FROM node:latest
RUN npm install -g http-server
RUN mkdir /app/
COPY . /app/
WORKDIR /app/joplin-vue/
RUN npm install
RUN npm run build
EXPOSE 8080
CMD [ "http-server", "dist" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment