File tree Expand file tree Collapse file tree 4 files changed +119
-7
lines changed Expand file tree Collapse file tree 4 files changed +119
-7
lines changed Original file line number Diff line number Diff line change
1
+ # Include any files or directories that you don't want to be copied to your
2
+ # container here (e.g., local build artifacts, temporary files, etc.).
3
+ #
4
+ # For more help, visit the .dockerignore file reference guide at
5
+ # https://docs.docker.com/go/build-context-dockerignore/
6
+
1
7
npm-debug.log
2
8
* .pem
3
9
.env
4
10
coverage
11
+ ** /.classpath
12
+ ** /.dockerignore
13
+ ** /.env
14
+ ** /.git
15
+ ** /.gitignore
16
+ ** /.project
17
+ ** /.settings
18
+ ** /.toolstarget
19
+ ** /.vs
20
+ ** /.vscode
21
+ ** /.next
22
+ ** /.cache
23
+ ** /* . * proj.user
24
+ ** /* .dbmdl
25
+ ** /* .jfm
26
+ ** /charts
27
+ ** /docker-compose *
28
+ ** /compose.y * ml
29
+ ** /Dockerfile *
30
+ ** /node_modules
31
+ ** /npm-debug.log
32
+ ** /obj
33
+ ** /secrets.dev.yaml
34
+ ** /values.dev.yaml
35
+ ** /build
36
+ ** /dist
37
+ LICENSE
38
+ README.md
Original file line number Diff line number Diff line change 1
- FROM node:16
1
+ # syntax=docker/dockerfile:1
2
2
3
- WORKDIR /app
3
+ # Comments are provided throughout this file to help you get started.
4
+ # If you need more help, visit the Dockerfile reference guide at
5
+ # https://docs.docker.com/go/dockerfile-reference/
4
6
5
- COPY package*.json ./
6
- RUN npm ci --only=production
7
+ # Want to help us make this template better? Share your feedback here: https://forms.gle/ybq9Krt8jtBL3iCk7
7
8
9
+ ARG NODE_VERSION=18
10
+
11
+ FROM node:${NODE_VERSION}-alpine
12
+
13
+ # Use production node environment by default.
14
+ ENV NODE_ENV production
15
+
16
+
17
+ WORKDIR /usr/src/app
18
+
19
+ # Download dependencies as a separate step to take advantage of Docker's caching.
20
+ # Leverage a cache mount to /root/.npm to speed up subsequent builds.
21
+ # Leverage a bind mounts to package.json and package-lock.json to avoid having to copy them into
22
+ # into this layer.
23
+ RUN --mount=type=bind,source=package.json,target=package.json \
24
+ --mount=type=bind,source=package-lock.json,target=package-lock.json \
25
+ --mount=type=cache,target=/root/.npm \
26
+ npm ci --omit=dev
27
+
28
+ # Run the application as a non-root user.
29
+ USER node
30
+
31
+ # Copy the rest of the source files into the image.
8
32
COPY . .
9
33
10
- ENV PORT=${PORT:-3000}
11
- USER 1000:1000
34
+ # Expose the port that the application listens on.
35
+ EXPOSE 3000
12
36
13
- CMD ./node_modules/probot/bin/probot.js run --port $PORT ./index.js
37
+ # Run the application.
38
+ CMD npm start
Original file line number Diff line number Diff line change
1
+ # Comments are provided throughout this file to help you get started.
2
+ # If you need more help, visit the Docker Compose reference guide at
3
+ # https://docs.docker.com/go/compose-spec-reference/
4
+
5
+ # Here the instructions define your application as a service called "server".
6
+ # This service is built from the Dockerfile in the current directory.
7
+ # You can add other services your application may depend on here, such as a
8
+ # database or a cache. For examples, see the Awesome Compose repository:
9
+ # https://github.com/docker/awesome-compose
10
+ services :
11
+ server :
12
+ build :
13
+ context : .
14
+ environment :
15
+ NODE_ENV : production
16
+ ports :
17
+ - 3000:3000
18
+
19
+ # The commented out section below is an example of how to define a PostgreSQL
20
+ # database that your application can use. `depends_on` tells Docker Compose to
21
+ # start the database before your application. The `db-data` volume persists the
22
+ # database data between container restarts. The `db-password` secret is used
23
+ # to set the database password. You must create `db/password.txt` and add
24
+ # a password of your choosing to it before running `docker-compose up`.
25
+ # depends_on:
26
+ # db:
27
+ # condition: service_healthy
28
+ # db:
29
+ # image: postgres
30
+ # restart: always
31
+ # user: postgres
32
+ # secrets:
33
+ # - db-password
34
+ # volumes:
35
+ # - db-data:/var/lib/postgresql/data
36
+ # environment:
37
+ # - POSTGRES_DB=example
38
+ # - POSTGRES_PASSWORD_FILE=/run/secrets/db-password
39
+ # expose:
40
+ # - 5432
41
+ # healthcheck:
42
+ # test: [ "CMD", "pg_isready" ]
43
+ # interval: 10s
44
+ # timeout: 5s
45
+ # retries: 5
46
+ # volumes:
47
+ # db-data:
48
+ # secrets:
49
+ # db-password:
50
+ # file: db/password.txt
51
+
Original file line number Diff line number Diff line change 1
1
CHANGELOG
2
2
=====================================
3
+ | June 10, 2024: fix: Docker image not working `#753 <https://github.com/mergeability/mergeable/pull/753>`_
4
+ | June 10, 2024: feat: publish multi arch docker image to dockerhub `#751 <https://github.com/mergeability/mergeable/pull/751>`_
3
5
| April 29, 2024: fix: Always allow assigning author `#744 <https://github.com/mergeability/mergeable/pull/744>`_
4
6
| Mar 11, 2024: fix: bump dependencies probot, jest and nock to latest versions and update ci workflow to use node 20 `#738 <https://github.com/mergeability/mergeable/pull/738>`_
5
7
| Feb 27, 2024: fix: search and replace of special annotations `#735 <https://github.com/mergeability/mergeable/pull/735>`_
You can’t perform that action at this time.
0 commit comments