Arty Dev
Arty Dev

Reputation: 111

Using Heroku cedar 14 stack as a Docker image

Recently I had my application running on cedar-14 stack in Heroku But since End-of-life window has begun and builds won't be available, I decided to use Docker, so Heroku will host Docker container with my application on cedar-14 stack as base Docker image.

So far this is my Dockerfile

FROM heroku/cedar

WORKDIR /app

COPY index.js .
COPY package.json .

But when I was using plain cedar-14 on Heroku, I also had .buildpacks, Aptfile and Procfile and these files were interpreted by Heroku environment. How can I make them work in a Docker environment now?

Upvotes: 0

Views: 194

Answers (1)

Tin Nguyen
Tin Nguyen

Reputation: 5330

.buildpacks, Aptfile is replaced by Dockerfile. You need to adjust your Dockerfile. Procfile is replaced by heroku.yml (see here.)

You can use cedar as your base image but I advise you to use latest LTS image and start from there.

Upvotes: 0

Related Questions