Added Astro.js guide
This commit is contained in:
@@ -25,6 +25,7 @@ jobs:
|
||||
app-name: ${{ vars.APP_NAME }}
|
||||
tag: production
|
||||
port: ${{ vars.PROD_PORT }}
|
||||
internal-port: ${{ vars.INTERNAL_PORT }}
|
||||
environment: production
|
||||
subdomain: ${{ vars.PROD_SUBDOMAIN }}
|
||||
|
||||
@@ -45,6 +46,7 @@ jobs:
|
||||
app-name: ${{ vars.APP_NAME }}
|
||||
tag: ${{ steps.slug.outputs.slug }}
|
||||
port: ${{ steps.slug.outputs.port }}
|
||||
internal-port: ${{ vars.INTERNAL_PORT }}
|
||||
environment: preview
|
||||
subdomain: ${{ steps.slug.outputs.slug }}.${{ vars.APP_NAME }}
|
||||
|
||||
|
||||
9
examples/docker/astro.dockerfile
Normal file
9
examples/docker/astro.dockerfile
Normal file
@@ -0,0 +1,9 @@
|
||||
FROM node:lts-alpine AS build
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN npm i
|
||||
RUN npm run build
|
||||
|
||||
FROM httpd:2.4 AS runtime
|
||||
COPY --from=build /app/dist /usr/local/apache2/htdocs/
|
||||
EXPOSE 80
|
||||
3
examples/docker/astro.dockerignore
Normal file
3
examples/docker/astro.dockerignore
Normal file
@@ -0,0 +1,3 @@
|
||||
.DS_Store
|
||||
node_modules
|
||||
dist
|
||||
Reference in New Issue
Block a user