Skip to content

Commit

Permalink
actually properly do this
Browse files Browse the repository at this point in the history
  • Loading branch information
Dougley committed Nov 4, 2021
1 parent ce8a6fa commit cc3697e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,6 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
cache-to: type=gha,mode=max
build-args: |
COMMIT:${{ github.sha }}
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
FROM node:lts-alpine
ARG COMMIT

WORKDIR /usr/wildbeast

COPY tsconfig.json ./
COPY package*.json ./
COPY src ./src

ENV GIT_COMMIT $(git rev-parse HEAD)
ENV GIT_COMMIT ${COMMIT}

RUN npm install
RUN npm prune --production
Expand Down

0 comments on commit cc3697e

Please sign in to comment.