Skip to content

Commit d5d8c70

Browse files
committed
Fix heroku Dockerfile location
Heroku does not allow changing of build context and sets it to the folder containing the Dockerfile. Hence the files have been moved to project root
1 parent 118a011 commit d5d8c70

File tree

4 files changed

+12
-14
lines changed

4 files changed

+12
-14
lines changed

heroku-docker.start.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
3+
/usr/bin/redis-server &
4+
npm run start &
5+
6+
wait -n
7+
exit $?
+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM node:14-alpine as app
22

33
WORKDIR /app
4-
COPY ../ ../
4+
COPY ./ ./
55

66
ENV SECRETS_KEY=
77
ENV SECRETS_IV=
@@ -13,7 +13,7 @@ EXPOSE 3000
1313

1414
RUN apk --update add redis
1515

16-
COPY ./start.sh ./
17-
RUN chmod +x ./start.sh
16+
COPY ./heroku-docker.start.sh ./
17+
RUN chmod +x ./heroku-docker.start.sh
1818

19-
CMD ["sh", "./start.sh"]
19+
CMD ["sh", "./heroku-docker.start.sh"]

heroku.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ setup:
55

66
build:
77
docker:
8-
web: heroku/Dockerfile
8+
web: heroku.Dockerfile
99

1010
release:
1111
image: web

heroku/start.sh

-9
This file was deleted.

0 commit comments

Comments
 (0)