Skip to content

Commit

Permalink
Merge branch 'release/1.4.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamDASILVA committed Sep 16, 2020
2 parents 1a2ef7f + c9c40a5 commit 11ad235
Show file tree
Hide file tree
Showing 6 changed files with 4,945 additions and 6,523 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2
jobs:
build:
docker:
- image: circleci/node:10
- image: circleci/node:12

working_directory: ~/mjml2html

Expand Down Expand Up @@ -33,7 +33,7 @@ jobs:

misc:
docker:
- image: circleci/node:10
- image: circleci/node:12

working_directory: ~/mjml2html

Expand Down
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.git
test/
node_modules
16 changes: 13 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
FROM node:10
# Base
FROM node:lts-alpine as base

WORKDIR /app

COPY . .
COPY package.json .

COPY package-lock.json .

RUN npm ci --only=production

RUN npm install
# Release
FROM node:lts-alpine as release

COPY --from=base /app/node_modules ./node_modules

COPY . .

EXPOSE 80

Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ version: '2'
services:
mjml2html:
build: .
volumes:
- ./:/app
environment:
- PORT=3001
ports:
Expand Down
Loading

0 comments on commit 11ad235

Please sign in to comment.