mirror of
https://github.com/gnmyt/myspeed.git
synced 2026-02-10 15:49:42 -06:00
Update Dockerfile to use deno build scripts
This commit is contained in:
15
.github/workflows/deploy_docker_dev.yml
vendored
15
.github/workflows/deploy_docker_dev.yml
vendored
@@ -9,25 +9,28 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@master
|
||||
uses: docker/setup-qemu-action@v3
|
||||
with:
|
||||
platforms: all
|
||||
|
||||
- name: Set up Docker Build
|
||||
uses: docker/setup-buildx-action@v2
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v2
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v3
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
platforms: linux/amd64
|
||||
tags: germannewsmaker/myspeed:development
|
||||
tags: germannewsmaker/myspeed:development
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
@@ -8,16 +8,19 @@ RUN npm run build
|
||||
|
||||
FROM denoland/deno:alpine
|
||||
|
||||
RUN apk add --no-cache tzdata
|
||||
RUN apk add --no-cache tzdata python3 make g++
|
||||
|
||||
ENV TZ=Etc/UTC
|
||||
|
||||
WORKDIR /myspeed
|
||||
|
||||
COPY --from=client-build /client/build /myspeed/build
|
||||
COPY ./server /myspeed/server
|
||||
COPY ./deno.json /myspeed/deno.json
|
||||
|
||||
RUN deno install --allow-scripts
|
||||
|
||||
COPY --from=client-build /client/build /myspeed/build
|
||||
|
||||
VOLUME ["/myspeed/data"]
|
||||
|
||||
EXPOSE 5216
|
||||
|
||||
Reference in New Issue
Block a user