Skip to content

Commit

Permalink
fix: remove __dirname
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeWitchBella committed Sep 7, 2021
1 parent ecff1e0 commit 48a375a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@isbl/docker-start",
"version": "0.12.0-beta.1",
"version": "0.12.0-beta.2",
"description": "Simplifies starting of apps inside docker container",
"exports": "./dist/docker-start.esm.js",
"bin": {
Expand Down
3 changes: 2 additions & 1 deletion src/docker-prepare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ export function prepare() {
const image = `docker.io/library/node:${nodeVersion}-alpine`
const packages = (packagejson().packages || []).join(' ')

const dockerContext = path.join(__dirname, '../docker')
const dockerContext = new URL('../docker', import.meta.url).pathname
const dockerfilePath = path.join(dockerContext, 'Dockerfile')
console.log(dockerfilePath)

function readTemplate() {
return fs.readFileSync(`${dockerfilePath}.template`, 'utf-8')
Expand Down

0 comments on commit 48a375a

Please sign in to comment.