File tree Expand file tree Collapse file tree 7 files changed +13
-4
lines changed Expand file tree Collapse file tree 7 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 1
1
# Note: universal image is not compatible with the devcontainer tools.
2
2
# we use the typescript-node image instead here but should switch out per
3
- # project requirements. #REMOVE_ME_AFTER_EDITING
3
+ # project requirements. You can choose a devcontainer that's appropriate
4
+ # for your sample from the list below #REMOVE_ME_AFTER_EDITING
4
5
5
6
# FROM mcr.microsoft.com/devcontainers/go:1.22-bookworm
6
7
# FROM mcr.microsoft.com/devcontainers/python:3.12-bookworm
Original file line number Diff line number Diff line change 19
19
- name : Deploy
20
20
uses :
DefangLabs/[email protected]
21
21
# REMOVE_ME_AFTER_EDITING - Replace the following line with the list of environment variables you want to pass to the action
22
+ # or remove the lines if you don't need to pass any environment variables/secrets to the action
22
23
with :
23
24
config-env-vars : ENV1 ENV2
24
25
env :
Original file line number Diff line number Diff line change 1
- # REMOVE_ME_AFTER_EDITING - This Dockerignore is for a basic node app. Modify as needed.
1
+ # REMOVE_ME_AFTER_EDITING - This Dockerignore is for a basic node app. Modify as needed for your sample .
2
2
node_modules
3
3
npm-debug.log
Original file line number Diff line number Diff line change 1
- # REMOVE_ME_AFTER_EDITING - This Dockerignore is for a basic node app. Modify as needed.
1
+ # REMOVE_ME_AFTER_EDITING - This Dockerignore is for a basic node app. Modify as needed for your sample .
2
2
node_modules
Original file line number Diff line number Diff line change 1
1
# A sample dockerfile for a Node.js application.
2
- # Replace with an appropriate Dockerfile for your application .
2
+ # Replace with an appropriate Dockerfile for your sample .
3
3
# REMOVE_ME_AFTER_EDITING
4
4
5
5
FROM node:20-bookworm-slim
Original file line number Diff line number Diff line change
1
+ //#REMOVE_ME_AFTER_EDITING - This is a sample index.js file for a Node.js application.
2
+ // Feel free to delete this file. It's just a placeholder.
3
+
1
4
const express = require ( 'express' ) ;
2
5
const { MongoClient } = require ( 'mongodb' ) ;
3
6
Original file line number Diff line number Diff line change 3
3
# for samples where a user may want to hot reload changes in the app, or
4
4
# if it depends on stateful services like a database that isn't supported
5
5
# by Defang, like MongoDB.
6
+ #
7
+ # Note: This dev compose file's services should extend the production
8
+ # compose file's services. That way we can keep things consistent across
9
+ # dev and production and override only what we need to.
6
10
7
11
services :
8
12
app :
You can’t perform that action at this time.
0 commit comments