Skip to content

Commit

Permalink
Merge pull request #1 from asera79/feature/docker
Browse files Browse the repository at this point in the history
Adds docker configuration
  • Loading branch information
asera79 authored Mar 24, 2024
2 parents 297e43b + 18378bd commit 85fd40d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM node:18-slim

WORKDIR /usr/src/app

COPY package*.json ./
RUN npm install --only production

COPY . ./

CMD ["node", "server.js"]

EXPOSE 5656
6 changes: 6 additions & 0 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
steps:
- name: 'gcr.io/cloud-builders/docker'
script: |
docker build -t us-central1-docker.pkg.dev/$PROJECT_ID/$PROJECT_ID/spxgc .
images:
- 'us-central1-docker.pkg.dev/$PROJECT_ID/$PROJECT_ID/spxgc:latest'

0 comments on commit 85fd40d

Please sign in to comment.