mirror of
https://github.com/docker/getting-started-app.git
synced 2025-07-04 00:11:26 -04:00
Compare commits
1 Commits
cc0ae3aedc
...
dependabot
Author | SHA1 | Date | |
---|---|---|---|
317ebefb13 |
@ -1,2 +0,0 @@
|
||||
node_modules
|
||||
Dockerfile
|
35
.github/workflows/docker-image.yml
vendored
35
.github/workflows/docker-image.yml
vendored
@ -1,35 +0,0 @@
|
||||
# .github/workflows/docker-image.yml
|
||||
name: Docker Image CI
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Log in to GitHub Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: |
|
||||
ghcr.io/${{ github.repository_owner }}/alinabil/getting-started:latest
|
||||
ghcr.io/${{ github.repository_owner }}/alinabil/getting-started:${{ github.sha }}
|
@ -1,7 +0,0 @@
|
||||
FROM node:18-alpine
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN yarn install --production && yarn cache clean
|
||||
ENTRYPOINT ["node"]
|
||||
CMD ["src/index.js"]
|
||||
EXPOSE 3000
|
@ -1,9 +0,0 @@
|
||||
{
|
||||
"AWSEBDockerrunVersion": "1",
|
||||
"Ports": [
|
||||
{
|
||||
"ContainerPort": "3000"
|
||||
}
|
||||
],
|
||||
"Logging": "/var/log/node"
|
||||
}
|
@ -6,7 +6,7 @@
|
||||
"scripts": {
|
||||
"prettify": "prettier -l --write \"**/*.js\"",
|
||||
"test": "jest",
|
||||
"dev": "nodemon -L src/index.js"
|
||||
"dev": "nodemon src/index.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"express": "^4.18.2",
|
||||
|
@ -2162,9 +2162,9 @@ json-parse-even-better-errors@^2.3.0:
|
||||
integrity sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==
|
||||
|
||||
json5@^2.2.1:
|
||||
version "2.2.1"
|
||||
resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.1.tgz#655d50ed1e6f95ad1a3caababd2b0efda10b395c"
|
||||
integrity sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==
|
||||
version "2.2.3"
|
||||
resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283"
|
||||
integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==
|
||||
|
||||
kleur@^3.0.3:
|
||||
version "3.0.3"
|
||||
|
Reference in New Issue
Block a user